Skip to content

Commit

Permalink
docs: update docs reflecting changes to request/reply
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Sep 13, 2022
1 parent 940642e commit 905609f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 4 additions & 6 deletions docs/Reference/Reply.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
- [.statusCode](#statuscode)
- [.server](#server)
- [.header(key, value)](#headerkey-value)
- [set-cookie](#set-cookie)
- [.headers(object)](#headersobject)
- [.getHeader(key)](#getheaderkey)
- [.getHeaders()](#getheaders)
Expand All @@ -16,13 +15,13 @@
- [.trailer(key, function)](#trailerkey-function)
- [.hasTrailer(key)](#hastrailerkey)
- [.removeTrailer(key)](#removetrailerkey)
- [.redirect([code,] dest)](#redirectcode--dest)
- [.redirect([code ,] dest)](#redirectcode--dest)
- [.callNotFound()](#callnotfound)
- [.getResponseTime()](#getresponsetime)
- [.type(contentType)](#typecontenttype)
- [.getSerializationFunction(schema | httpStatus)](#getserializationfunction)
- [.compileSerializationSchema(schema, httpStatus)](#compileserializationschema)
- [.serializeInput(data, [schema | httpStatus], [httpStatus])](#serializeinput)
- [.getSerializationFunction(schema | httpStatus)](#getserializationfunctionschema--httpstatus)
- [.compileSerializationSchema(schema, httpStatus)](#compileserializationschemaschema-httpstatus)
- [.serializeInput(data, [schema | httpStatus], [httpStatus])](#serializeinputdata-schema--httpstatus-httpstatus)
- [.serializer(func)](#serializerfunc)
- [.raw](#raw)
- [.sent](#sent)
Expand Down Expand Up @@ -84,7 +83,6 @@ object that exposes the following functions and properties:
from Node core.
- `.log` - The logger instance of the incoming request.
- `.request` - The incoming request.
- `.context` - Access the [Request's context](./Request.md) property.

```js
fastify.get('/', options, function (request, reply) {
Expand Down
7 changes: 4 additions & 3 deletions docs/Reference/Request.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Request is a core Fastify object containing the following fields:
- `connection` - Deprecated, use `socket` instead. The underlying connection of
the incoming request.
- `socket` - the underlying connection of the incoming request
- `routeSchema` - the scheme definition set for the router that is
handling the request
- `routeConfig` - The route [`config`](./Routes.md#routes-config)
object.
- [.getValidationFunction(schema | httpPart)](#getvalidationfunction) -
Returns a validation function for the specified schema or http part,
if any of either are set or cached.
Expand All @@ -48,9 +52,6 @@ Request is a core Fastify object containing the following fields:
schema and returns the serialized payload. If the optional
`httpPart` is provided, the function will use the serializer
function given for that HTTP Status Code. Defaults to `null`.
- `context` - A Fastify internal object. You should not use it directly or
modify it. It is useful to access one special key:
- `context.config` - The route [`config`](./Routes.md#routes-config) object.

### Headers

Expand Down

0 comments on commit 905609f

Please sign in to comment.