Class Patron::Response
In: lib/patron/response.rb
Parent: Object

Represents the response from the HTTP server.

Methods

inspect   new  

Attributes

body  [R] 
headers  [R] 
redirect_count  [R] 
status  [R] 
status_line  [R] 
url  [R] 

Public Class methods

[Source]

    # File lib/patron/response.rb, line 31
31:     def initialize
32:       @headers = {}
33:     end

Public Instance methods

[Source]

    # File lib/patron/response.rb, line 37
37:     def inspect
38:       # Avoid spamming the console with the header and body data
39:       "#<Patron::Response @status_line='#{@status_line}'>"
40:     end

[Validate]