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

Inherits:
Faraday::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.



24
25
26
27
# File 'lib/sapoci/connect/middleware/follow_redirects.rb', line 24

def initialize(response)
  super "redirect with empty location header"
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



22
23
24
# File 'lib/sapoci/connect/middleware/follow_redirects.rb', line 22

def response
  @response
end