Class: ModraUp::Http::Response
- Inherits:
-
Object
- Object
- ModraUp::Http::Response
Overview
Server response. Only within the block passed to ModraUp::Http::Request#start will the response be available in the callback. Do not call ModraUp::Http::Request#cancel within the callback.
Instance Method Summary # collapse
-
#body ⇒ String
Response body. Encoding is determined by the charset in Content-Type; otherwise, it defaults to Encoding::ASCII_8BIT.
-
#headers ⇒ Hash
Headers returned by the server.
-
#status_code ⇒ Integer
HTTP status code (rfc2616).
Instance Method Details
response.body ⇒ String
Response body. Encoding is determined by the charset in Content-Type; otherwise, it defaults to Encoding::ASCII_8BIT.
response.headers ⇒ Hash
Headers returned by the server.
response.status_code ⇒ Integer
HTTP status code (rfc2616).