- Preparing search index...
- The search index is not available
docs.hg.fi
Methods
Static
getRequestDataAsBuffer
- getRequestDataAsBuffer(request: IncomingMessage): Promise<Buffer>
-
Returns Promise<Buffer>
Static
getRequestDataAsFormUrlEncoded
- getRequestDataAsFormUrlEncoded(request: IncomingMessage): Promise<JsonAny>
-
Returns Promise<JsonAny>
Static
getRequestDataAsJson
- getRequestDataAsJson(request: IncomingMessage): Promise<JsonAny>
-
Returns Promise<JsonAny>
Static
getRequestDataAsString
- getRequestDataAsString(request: IncomingMessage, encoding?: BufferEncodingString): Promise<string>
-
Parameters
-
request: IncomingMessage
-
encoding: BufferEncodingString = 'utf8'
Returns Promise<string>
Get request body data as Buffer object.
Returns
The request input data