RequestParser Class
The Request Parser takes an IRequest provides parsing and sub request creation
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
export declare class RequestParser implements IRequest
Implements: IRequest
Constructors
Constructor | Alerts | Description |
---|---|---|
(constructor)(request) | Alpha |
Constructs a new instance of the RequestParser class |
Properties
Property | Alerts | Modifiers | Type | Description |
---|---|---|---|---|
headers | Alpha |
optional , readonly |
IRequestHeader | |
pathParts | Alpha |
readonly |
readonly string[] | Returns the decoded path parts of the request's url |
query | Alpha |
readonly |
string | |
url | Alpha |
readonly |
string |
Constructor Details
(constructor)
Constructs a new instance of the RequestParser
class
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
protected constructor(request: Readonly<IRequest>);
Parameters
Parameter | Type | Description |
---|---|---|
request | Readonly<IRequest> |
Property Details
headers
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
readonly headers?: IRequestHeader;
Type: IRequestHeader
pathParts
Returns the decoded path parts of the request's url
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
get pathParts(): readonly string[];
Type: readonly string[]
query
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
readonly query: string;
Type: string
url
WARNING: This API is provided as an alpha preview and may change without notice. Use at your own risk.
Signature
get url(): string;
Type: string