Class HttpRequest
Represents an HTTP request made to a server.
Inherits from
-
Object
(base class)
Fields
Name | Type | Descrption |
---|---|---|
httpVersion | HttpVersion | The HTTP protocol version used for the request |
method | HttpMethod | The HTTP method of the request |
requestUrl | string | The request URL |
headers | InetHeaderMap | All request headers |
Methods
Name | Description |
---|---|
host | Shortcut to the 'Host' header (always present for HTTP 1.1) |
contentType | Returns the mime type part of the 'Content-Type' header. |
contentTypeParameters | Returns any supplementary parameters of the 'Content-Type' header. |
persistent | Determines if the connection persists across requests. |
Aliases
Name | Description |
---|---|
url | Please use requestUrl instead. |
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.