Request
Module | ejs.web |
Namespace | "ejs.web" |
Definition | final class Request |
Inheritance | Request ![]() |
HTTP request information.
The request objects stores parsed information for incoming HTTP requests.
Properties
Qualifiers | Property | Type | Description |
---|---|---|---|
public | accept | String | Accept header. |
public | acceptCharset | String | AcceptCharset header. |
public | acceptEncoding | String | AcceptEncoding header. |
public | authAcl | String | Authentication access control list. |
public | authGroup | String | Authentication group. |
public | authType | String | Authentication method if authorization is being used (basic or digest). |
public | authUser | String | Authentication user name. |
public | connection | String | Connection header. |
public | contentLength | Number | Posted content length (header: Content-Length). |
public | cookies | Object | Stores Client cookie state information. The cookies object will be created automatically if the Client supplied cookies with the current request. Cookies are used to specify the session state. If sessions are being used, a session cookie will be sent to and from the browser with each request. The elements are user defined. TODO - would be better if this were a hash of pre-parsed Cookie objects. |
public | extension | String | Extension portion of the URL after aliasing to a filename. |
public | files | Array | Files uploaded as part of the request. For each uploaded file, an object is created in files. The name of the object is given by the upload field name in the request page form. This is an array of UploadFile objects. |
public | headers | Object | Store the request headers. The request array stores all the HTTP request headers that were supplied by the client in the current request. |
public | hostName | String | The host name header. |
public | method | String | Request method: DELETE, GET, POST, PUT, OPTIONS, TRACE. |
public | mimeType | String | Content mime type (header: Content-Type). |
public | originalUri | String | Raw request URI before decoding. |
public | pathInfo | String | The portion of the path after the script name if extra path processing is being used. See the ExtraPath directive. |
public | pathTranslated | The physical path corresponding to PATH_INFO. | |
public | pragma | String | Pragma header. |
public | query | String | Decoded Query string (URL query string). |
public | referrer | String | Name of the referring URL. |
public | remoteAddress | String | The IP address of the Client issuing the request. |
public | remoteHost | String | The host address of the Client issuing the request. |
public | sessionID | String | Current session ID. Index into the $sessions object. |
public | url | String | The decoded request URL portion after stripping the scheme, host, extra path, query and fragments. |
public | userAgent | String | Name of the Client browser software set in the HTTP_USER_AGENT header. |
Request Methods
Qualifiers | Method |
---|---|
Request() |
Method Detail
Request()