You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`sampleInterval` - the frequency of sampling in milliseconds. When set to `0`, the other load
170
-
options are ignored. Defaults to `0` (no sampling).
169
+
-`sampleInterval` - the frequency of sampling in milliseconds. When set to `0`, the other load options are ignored. Defaults to `0` (no sampling).
171
170
172
-
-`maxHeapUsedBytes` - maximum V8 heap size over which incoming requests are rejected with an HTTP
173
-
Server Timeout (503) response. Defaults to `0` (no limit).
171
+
-`maxHeapUsedBytes` - maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to `0` (no limit).
174
172
175
-
-`maxRssBytes` - maximum process RSS size over which incoming requests are rejected with an HTTP
176
-
Server Timeout (503) response. Defaults to `0` (no limit).
173
+
-`maxRssBytes` - maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to `0` (no limit).
177
174
178
-
-`maxEventLoopDelay` - maximum event loop delay duration in milliseconds over which incoming
179
-
requests are rejected with an HTTP Server Timeout (503) response. Defaults to `0` (no limit).
175
+
-`maxEventLoopDelay` - maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to `0` (no limit).
Options passed to the [**mimos**](https://github.com/hapijs/mimos) module when generating the mime
186
-
database used by the server (and accessed via [`server.mime`](#server.mime)):
181
+
Options passed to the [**mimos**](https://hapi.dev/family/mimos/api) module when generating the mime database used by the server (and accessed via [`server.mime`](#server.mime)):
187
182
188
-
-`override` - an object hash that is merged into the built in mime information specified
189
-
[here](https://github.com/jshttp/mime-db). Each key value pair represents a single mime object.
190
-
Each override value must contain:
183
+
-`override` - an object hash that is merged into the built in mime information specified [here](https://github.com/jshttp/mime-db). Each key value pair represents a single mime object. Each override value must contain:
191
184
192
185
-`key` - the lower-cased mime-type string (e.g. `'application/javascript'`).
193
186
194
-
-`value` - an object following the specifications outlined [here](https://github.com/jshttp/mime-db#data-structure).
195
-
Additional values include:
187
+
-`value` - an object following the specifications outlined [here](https://github.com/jshttp/mime-db#data-structure). Additional values include:
196
188
197
189
-`type` - specify the `type` value of result objects, defaults to `key`.
198
190
199
-
-`predicate` - method with signature `function(mime)` when this mime type is found in the
200
-
database, this function will execute to allows customizations.
191
+
-`predicate` - method with signature `function(mime)` when this mime type is found in the database, this function will execute to allows customizations.
registrations, only the first configuration is used. Defaults to `false` (a duplicate
1514
1507
registration will throw an error).
1515
1508
1516
-
- a [**podium**](https://github.com/hapijs/podium) emitter object.
1509
+
- a [**podium**](https://hapi.dev/family/podium/api) emitter object.
1517
1510
1518
1511
- an array containing any of the above.
1519
1512
@@ -1847,7 +1840,7 @@ Injects a request into the server simulating an incoming HTTP request without ma
1847
1840
socket connection. Injection is useful for testing purposes as well as for invoking routing logic
1848
1841
internally without the overhead and limitations of the network stack.
1849
1842
1850
-
The method utilizes the [**shot**](https://github.com/hapijs/shot) module for performing
1843
+
The method utilizes the [**shot**](https://hapi.dev/family/shot/api) module for performing
1851
1844
injections, with some additional options and response properties:
1852
1845
1853
1846
-`options` - can be assigned a string with the requested URI, or an object with:
@@ -2453,24 +2446,24 @@ across multiple requests. Registers a cookie definitions where:
2453
2446
-`'base64'` - string value is encoded using Base64.
2454
2447
-`'base64json'` - object value is JSON-stringified then encoded using Base64.
2455
2448
-`'form'` - object value is encoded using the _x-www-form-urlencoded_ method.
2456
-
-`'iron'` - Encrypts and sign the value using [**iron**](https://github.com/hueniverse/iron).
2449
+
-`'iron'` - Encrypts and sign the value using [**iron**](https://hapi.dev/family/iron/api).
2457
2450
2458
2451
-`sign` - an object used to calculate an HMAC for cookie integrity validation. This does not provide privacy, only a mean to verify that the cookie value was generated by the server. Redundant when `'iron'` encoding is used. Options are:
2459
2452
2460
-
-`integrity` - algorithm options. Defaults to [`require('iron').defaults.integrity`](https://github.com/hueniverse/iron#options).
2453
+
-`integrity` - algorithm options. Defaults to [`require('iron').defaults.integrity`](https://hapi.dev/family/iron/api/#options).
2461
2454
-`password` - password used for HMAC key generation (must be at least 32 characters long).
2462
2455
2463
2456
-`password` - password used for `'iron'` encoding (must be at least 32 characters long).
2464
2457
2465
-
-`iron` - options for `'iron'` encoding. Defaults to [`require('iron').defaults`](https://github.com/hueniverse/iron#options).
2458
+
-`iron` - options for `'iron'` encoding. Defaults to [`require('iron').defaults`](https://hapi.dev/family/iron/api/#options).
2466
2459
2467
2460
-`ignoreErrors` - if `true`, errors are ignored and treated as missing cookies.
2468
2461
2469
2462
-`clearInvalid` - if `true`, automatically instruct the client to remove invalid cookies. Defaults to `false`.
2470
2463
2471
2464
-`strictHeader` - if `false`, allows any cookie value including values in violation of [RFC 6265](https://tools.ietf.org/html/rfc6265). Defaults to `true`.
2472
2465
2473
-
-`passThrough` - used by proxy plugins (e.g. [**h2o2**](https://github.com/hapijs/h2o2)).
2466
+
-`passThrough` - used by proxy plugins (e.g. [**h2o2**](https://hapi.dev/family/h2o2/api)).
2474
2467
2475
2468
-`contextualize` - a function using the signature `async function(definition, request)` used to override a request-specific cookie settings where:
2476
2469
@@ -2711,7 +2704,7 @@ The authentication mode. Available values:
2711
2704
Default value: `false`, unless the scheme requires payload authentication.
2712
2705
2713
2706
If set, the incoming request payload is authenticated after it is processed. Requires a strategy
2714
-
with payload authentication support (e.g. [Hawk](#https://github.com/hueniverse/hawk)). Cannot be
2707
+
with payload authentication support (e.g. [Hawk](https://hapi.dev/family/hawk/api)). Cannot be
2715
2708
set to a value other than `'required'` when the scheme sets the authentication `options.payload` to
2716
2709
`true`.
2717
2710
@@ -2884,7 +2877,7 @@ string payload or escaping it after stringification. Supports the following:
2884
2877
2885
2878
-`suffix` - string suffix added after conversion to JSON string. Defaults to no suffix.
If a custom validation function is defined via [`schema`](#route.options.response.schema) or
3191
-
[`status`](#route.options.response.status) then `options` can an arbitrary object that will be
3192
-
passed to this function as the second argument.
3180
+
[**joi**](https://hapi.dev/family/joi/api) options object pass to the validation function. Useful to set global options such as `stripUnknown` or `abortEarly`. If a custom validation function is defined via [`schema`](#route.options.response.schema) or [`status`](#route.options.response.status) then `options` can an arbitrary object that will be passed to this function as the second argument.
0 commit comments