RequestParser Class
The Request Parser takes an IRequest provides parsing and sub request creation
To use, import via @fluidframework/runtime-utils/legacy
.
For more information about our API support guarantees, see here.
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
To use, import via @fluidframework/runtime-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
protected constructor(request: Readonly<IRequest>);
Parameters
Parameter | Type | Description |
---|---|---|
request | Readonly<IRequest> |
Property Details
headers
To use, import via @fluidframework/runtime-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly headers?: IRequestHeader;
Type: IRequestHeader
pathParts
Returns the decoded path parts of the request's url
To use, import via @fluidframework/runtime-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
get pathParts(): readonly string[];
Type: readonly string[]
query
To use, import via @fluidframework/runtime-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
readonly query: string;
Type: string
url
To use, import via @fluidframework/runtime-utils/alpha
.
For more information about our API support guarantees, see here.
Signature
get url(): string;
Type: string