Class HttpResponse
Represents the HTTP response from the server back to the client.
Inherits from
-
Object
(base class)
Fields
Name | Type | Descrption |
---|---|---|
httpVersion | HttpVersion | The protocol version of the response - should not be changed |
statusCode | int | The status code of the response, 200 by default |
statusPhrase | string | The status phrase of the response |
headers | StrMapCI | The response header fields |
cookies | Cookie[string] | All cookies that shall be set on the client for this request |
Properties
Name | Type | Description |
---|---|---|
contentType | string | Shortcut to the "Content-Type" header |
Authors
Sönke Ludwig, Jan Krüger
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.