[Hapi] Updated timeout property of RoutePayloadConfigurationObject is an optional property which accepts a number or false

This commit is contained in:
Matteo Ferrando
2017-08-18 18:40:48 -04:00
parent 3edd355f88
commit 9b809a2ccc

View File

@@ -1025,7 +1025,7 @@ export interface RoutePayloadConfigurationObject {
/** limits the size of incoming payloads to the specified byte count. Allowing very large payloads may cause the server to run out of memory. Defaults to 1048576 (1MB). */
maxBytes?: number;
/** payload reception timeout in milliseconds. Sets the maximum time allowed for the client to transmit the request payload (body) before giving up and responding with a Request Timeout (408) error response. Set to false to disable. Defaults to 10000 (10 seconds). */
timeout?: number;
timeout?: number | false;
/** the directory used for writing file uploads. Defaults to os.tmpdir(). */
uploads?: string;
/**