diff --git a/docs/Reference/Reply.md b/docs/Reference/Reply.md index daaf599314..d3a521a2ca 100644 --- a/docs/Reference/Reply.md +++ b/docs/Reference/Reply.md @@ -11,9 +11,9 @@ - [.headers(object)](#headersobject) - [.getHeader(key)](#getheaderkey) - [.getHeaders()](#getheaders) - - [set-cookie](#set-cookie) - [.removeHeader(key)](#removeheaderkey) - [.hasHeader(key)](#hasheaderkey) + - [.writeEarlyHints(hints, callback)](#writeearlyhintshints-callback) - [.trailer(key, function)](#trailerkey-function) - [.hasTrailer(key)](#hastrailerkey) - [.removeTrailer(key)](#removetrailerkey) @@ -32,8 +32,9 @@ - [Strings](#strings) - [Streams](#streams) - [Buffers](#buffers) - - [ReadableStream](#send-readablestream) - - [Response](#send-response) + - [TypedArrays](#typedarrays) + - [ReadableStream](#readablestream) + - [Response](#response) - [Errors](#errors) - [Type of the final payload](#type-of-the-final-payload) - [Async-Await and Promises](#async-await-and-promises) @@ -87,7 +88,7 @@ since the request was received by Fastify. already been called. - `.hijack()` - interrupt the normal request lifecycle. - `.raw` - The - [`http.ServerResponse`](https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_class_http_serverresponse) + [`http.ServerResponse`](https://nodejs.org/dist/latest-v20.x/docs/api/http.html#http_class_http_serverresponse) from Node core. - `.log` - The logger instance of the incoming request. - `.request` - The incoming request. @@ -157,7 +158,7 @@ Sets a response header. If the value is omitted or undefined, it is coerced to > will result in a 500 `TypeError` response. For more information, see -[`http.ServerResponse#setHeader`](https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_response_setheader_name_value). +[`http.ServerResponse#setHeader`](https://nodejs.org/dist/latest-v20.x/docs/api/http.html#http_response_setheader_name_value). - ### set-cookie @@ -586,7 +587,7 @@ values. This is the -[`http.ServerResponse`](https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_class_http_serverresponse) +[`http.ServerResponse`](https://nodejs.org/dist/latest-v20.x/docs/api/http.html#http_class_http_serverresponse) from Node core. Whilst you are using the Fastify `Reply` object, the use of `Reply.raw` functions is at your own risk as you are skipping all the Fastify logic of handling the HTTP response. e.g.: diff --git a/docs/Reference/Server.md b/docs/Reference/Server.md index f8610bfdc8..d9438197c7 100644 --- a/docs/Reference/Server.md +++ b/docs/Reference/Server.md @@ -106,7 +106,7 @@ describes the properties available in that options object. An object used to configure the server's listening socket. The options are the same as the Node.js core [`createServer` -method](https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_http_createserver_options_requestlistener). +method](https://nodejs.org/docs/latest-v20.x/api/http.html#httpcreateserveroptions-requestlistener). This option is ignored if options [`http2`](#factory-http2) or [`https`](#factory-https) are set. @@ -117,7 +117,7 @@ This option is ignored if options [`http2`](#factory-http2) or + Default: `false` If `true` Node.js core's -[HTTP/2](https://nodejs.org/dist/latest-v14.x/docs/api/http2.html) module is +[HTTP/2](https://nodejs.org/dist/latest-v20.x/docs/api/http2.html) module is used for binding the socket. ### `https` @@ -127,7 +127,7 @@ used for binding the socket. An object used to configure the server's listening socket for TLS. The options are the same as the Node.js core [`createServer` -method](https://nodejs.org/dist/latest-v14.x/docs/api/https.html#https_https_createserver_options_requestlistener). +method](https://nodejs.org/dist/latest-v20.x/docs/api/https.html#https_https_createserver_options_requestlistener). When this property is `null`, the socket will not be configured for TLS. This option also applies when the [`http2`](#factory-http2) option is set.