Can be used to control which requests the server should handle.

interface RequestOptions {
    bodyLimit: number;
    timeout: number;
}

Properties

Properties

bodyLimit: number

Defines the maximum payload (in bytes), the server is allowed to accept.

Environment variable: REQUEST_BODY_LIMIT Environment value:

Default

1048576
timeout: number

Defines the maximum number of milliseconds for receiving the entire request from the client. See the Node.js documentation for more details: https://nodejs.org/dist/latest/docs/api/http.html#http_server_requesttimeout

Environment variable: REQUEST_TIMEOUT Environment value:

Default

0