class Github::ParamsHash
def options
- Api: - public
Returns:
-
(Hash)
-
def options opts = fetch('options', {}) headers = fetch('headers', {}) if value = accept headers[:accept] = value end if self['content_type'] headers[:content_type] = self['content_type'] end opts[:raw] = key?('raw') ? self['raw'] : false opts[:headers] = headers unless headers.empty? opts end