Class: SAPOCI::Connect::Middleware::RedirectWithoutLocation
- Inherits:
-
Faraday::Error::ClientError
- Object
- Faraday::Error::ClientError
- SAPOCI::Connect::Middleware::RedirectWithoutLocation
- Defined in:
- lib/sapoci/connect/middleware/follow_redirects.rb
Overview
Public: Exception thrown when client returns an empty location header
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RedirectWithoutLocation
constructor
A new instance of RedirectWithoutLocation.
Constructor Details
#initialize(response) ⇒ RedirectWithoutLocation
Returns a new instance of RedirectWithoutLocation.
22 23 24 25 |
# File 'lib/sapoci/connect/middleware/follow_redirects.rb', line 22 def initialize(response) super "redirect with empty location header" @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
20 21 22 |
# File 'lib/sapoci/connect/middleware/follow_redirects.rb', line 20 def response @response end |