Class: SAPOCI::Connect::Middleware::RedirectWithoutLocation

Inherits:
Faraday::Error::ClientError
  • Object
show all
Defined in:
lib/sapoci/connect/middleware/follow_redirects.rb

Overview

Public: Exception thrown when client returns an empty location header

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



20
21
22
# File 'lib/sapoci/connect/middleware/follow_redirects.rb', line 20

def response
  @response
end