Class: Sketchup::Http::Response
| Relationships | |
| Inherits: | Object |
Overview
Do not Request#cancel the request in the response callback.
Response objects allows you to get the response information from the server, you can only receive the Response if you have attached a callback block when calling start from the Request object.
Instance Method Summary
-
#body ⇒ String
Gets the HTTP body that was received from the server as a string encoded using the charset provided in the
“Content-Type”header of the server response, if no charset is specified,Encoding::ASCII_8BITwill be used. -
#headers ⇒ Hash
Returns the HTTP headers that were sent by the server.
-
#status_code ⇒ Integer
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” header of the server response, if no charset is specified, Encoding::ASCII_8BIT will be used.
#headers ⇒ Hash
Returns the HTTP headers that were sent by the server.
#status_code ⇒ Integer
Returns the HTTP response status code as defined in rfc2616.