Class: Sketchup::Http::Response
- Inherits:
-
Object
- Object
- Sketchup::Http::Response
- Defined in:
- lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb
Overview
Http::Response objects allows you to get the response information from the server, you can only receive the Http::Response if you have attached a callback block when calling start from the Http::Request object.
Instance Method Summary collapse
-
#body ⇒ String
Gets the http body that was received from the server as a string encoded using the charset provided in the Content-Type of the server response, if no charset is specified, ASCII-8BIT will be used.
-
#headers ⇒ Hash
Returns the http headers that were sent by the server.
-
#status_code ⇒ int
Returns the HTTP response status code as defined in rfc2616.
Instance Method Details
#body ⇒ String
Gets the http body that was received from the server as a string encoded using the charset provided in the Content-Type of the server response, if no charset is specified, ASCII-8BIT will be used.
27 28 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb', line 27 def body end |
#headers ⇒ Hash
Returns the http headers that were sent by the server.
44 45 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb', line 44 def headers end |
#status_code ⇒ int
Returns the HTTP response status code as defined in rfc2616.
59 60 |
# File 'lib/sketchup-api-stubs/stubs/Sketchup/Http/Response.rb', line 59 def status_code end |