Class: OAuth2::Response
- Inherits:
-
Object
- Object
- OAuth2::Response
- Defined in:
- lib/oauth2/response.rb
Overview
The Response class handles HTTP responses in the OAuth2 gem, providing methods
to access and parse response data in various formats.
Constant Summary collapse
- DEFAULT_OPTIONS =
Default configuration options for Response instances
{ parse: :automatic, snaky: true, snaky_hash_klass: SnakyHash::StringKeyed, }.freeze
- @@parsers =
Storage for response body parser procedures
{ query: ->(body) { Rack::Utils.parse_query(body) }, text: ->(body) { body }, }
- @@content_types =
Maps content types to parser symbols
{ "application/x-www-form-urlencoded" => :query, "text/plain" => :text, }
Instance Attribute Summary collapse
-
#options ⇒ Hash
The options hash for this instance.
-
#response ⇒ Faraday::Response
readonly
The raw Faraday response object.