module Github::Connection

def default_options(options = {})

Other tags:
    Api: - private

Returns:
  • (Hash[Symbol]) -
def default_options(options = {})
  headers = default_headers.merge(options[:headers] || {})
  headers.merge!({USER_AGENT => options[:user_agent]})
  {
    headers: headers,
    ssl: options[:ssl],
    url: options[:endpoint]
  }
end