Method: HTTY::Request#follow

Defined in:
lib/htty/request.rb

#follow(response) ⇒ Object

Establishes a new #uri according to the Location header of the specified response, or raises either HTTY::NoResponseError or HTTY::NoLocationHeaderError.



257
258
259
260
# File 'lib/htty/request.rb', line 257

def follow(response)
  raise HTTY::NoResponseError unless response
  response.follow_relative_to(self)
end