Request

Moduleejs.web
Definitionfinal class Request
InheritanceRequest inherit Object
Specifiedejscript-1.1
StabilityPrototype.

HTTP request information.

The request objects stores parsed information for incoming HTTP requests.


Properties

QualifiersPropertyTypeDescription
public acceptStringAccept header.
public acceptCharsetStringAcceptCharset header.
public acceptEncodingStringAcceptEncoding header.
public authGroupStringAuthentication group.
public authTypeStringAuthentication method if authorization is being used (basic or digest).
public authUserStringAuthentication user name.
public bodyStringRequest content body. NOTE: This property will be replaced with a stream based input scheme in a future release.
public connectionStringConnection header.
public contentLengthNumberPosted content length (header: Content-Length).
public cookiesObjectStores 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 extensionStringExtension portion of the URL after aliasing to a filename.
public filesObjectFiles 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 headersObjectStore the request headers. The request array stores all the HTTP request headers that were supplied by the client in the current request.
public hostNameStringThe host name header.
public methodStringRequest method: DELETE, GET, POST, PUT, OPTIONS, TRACE.
public mimeTypeStringContent mime type (header: Content-Type).
public originalUriStringRaw request URI before decoding.
public pathInfoStringThe 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 pragmaStringPragma header.
public queryStringDecoded Query string (URL query string).
public referrerStringName of the referring URL.
public remoteAddressStringThe IP address of the Client issuing the request.
public sessionIDStringCurrent session ID. Index into the sessions object.
public urlStringThe decoded request URL portion after stripping the scheme, host, extra path, query and fragments.
public userAgentStringName of the Client browser software set in the HTTP_USER_AGENT header.

Request Methods

QualifiersMethod
Request()

Method Detail