Method: Patron::Response#redirect_count

Defined in:
lib/patron/response.rb

#redirect_countInteger (readonly)

Returns how many redirects were followed when fulfilling this request.

Returns:

  • (Integer)

    how many redirects were followed when fulfilling this request



17
18
19
# File 'lib/patron/response.rb', line 17

def redirect_count
  @redirect_count
end