Request
Module | ejs.web |
Definition | final class Request |
Inheritance | Request Object |
Specified | ejscript-1.1 |
Stability | Prototype. |
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 | authGroup | String | Authentication group. |
public | authType | String | Authentication method if authorization is being used (basic or digest). |
public | authUser | String | Authentication user name. |
public | body | String | Request content body. NOTE: This property will be replaced with a stream based input scheme in a future
release. |
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. |
public | extension | String | Extension portion of the URL after aliasing to a filename. |
public | files | Object | Files uploaded as part of the request. For each uploaded file, an instance of UploadFile is created in files.
The property name of the instance is given by the file upload HTML input element ID in the request page form.
Set to null if no files have been uploaded. |
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. |
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 | 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. |
Inherited Properties
Request Methods
Inherited Methods
Method Detail