Preparing search index...
The search index is not available
Astro Node.js Fastify adapter - v0.0.12
Astro Node.js Fastify adapter
<internal>
FastifyCompressOptions
Interface FastifyCompressOptions
interface
FastifyCompressOptions
{
brotliOptions
?:
BrotliOptions
;
customTypes
?:
RegExp
|
CompressibleContentTypeFunction
;
encodings
?:
EncodingToken
[]
;
forceRequestEncoding
?:
EncodingToken
;
global
?:
boolean
;
inflateIfDeflated
?:
boolean
;
onInvalidRequestPayload
?:
(
(
encoding
,
request
,
error
)
=>
undefined
|
null
|
Error
)
;
onUnsupportedEncoding
?:
(
(
encoding
,
request
,
reply
)
=>
string
|
Buffer
|
Stream
)
;
onUnsupportedRequestEncoding
?:
(
(
encoding
,
request
,
reply
)
=>
undefined
|
null
|
Error
)
;
removeContentLengthHeader
?:
boolean
;
requestEncodings
?:
EncodingToken
[]
;
threshold
?:
number
;
zlib
?:
unknown
;
zlibOptions
?:
ZlibOptions
;
}
Index
Properties
brotli
Options?
custom
Types?
encodings?
force
Request
Encoding?
global?
inflate
If
Deflated?
on
Invalid
Request
Payload?
on
Unsupported
Encoding?
on
Unsupported
Request
Encoding?
remove
Content
Length
Header?
request
Encodings?
threshold?
zlib?
zlib
Options?
Properties
Optional
brotli
Options
brotli
Options
?:
BrotliOptions
Optional
custom
Types
custom
Types
?:
RegExp
|
CompressibleContentTypeFunction
Optional
encodings
encodings
?:
EncodingToken
[]
Optional
force
Request
Encoding
force
Request
Encoding
?:
EncodingToken
Optional
global
global
?:
boolean
Optional
inflate
If
Deflated
inflate
If
Deflated
?:
boolean
Optional
on
Invalid
Request
Payload
on
Invalid
Request
Payload
?:
(
(
encoding
,
request
,
error
)
=>
undefined
|
null
|
Error
)
Type declaration
(
encoding
,
request
,
error
)
:
undefined
|
null
|
Error
Parameters
encoding
:
string
request
:
FastifyRequest
<
RouteGenericInterface
,
RawServerDefault
,
IncomingMessage
,
FastifySchema
,
FastifyTypeProviderDefault
,
unknown
,
FastifyBaseLogger
,
ResolveFastifyRequestType
<
FastifyTypeProviderDefault
,
FastifySchema
,
RouteGenericInterface
>
>
error
:
Error
Returns
undefined
|
null
|
Error
Optional
on
Unsupported
Encoding
on
Unsupported
Encoding
?:
(
(
encoding
,
request
,
reply
)
=>
string
|
Buffer
|
Stream
)
Type declaration
(
encoding
,
request
,
reply
)
:
string
|
Buffer
|
Stream
Parameters
encoding
:
string
request
:
FastifyRequest
<
RouteGenericInterface
,
RawServerDefault
,
IncomingMessage
,
FastifySchema
,
FastifyTypeProviderDefault
,
unknown
,
FastifyBaseLogger
,
ResolveFastifyRequestType
<
FastifyTypeProviderDefault
,
FastifySchema
,
RouteGenericInterface
>
>
reply
:
FastifyReply
<
RawServerDefault
,
IncomingMessage
,
ServerResponse
<
IncomingMessage
>
,
RouteGenericInterface
,
unknown
,
FastifySchema
,
FastifyTypeProviderDefault
,
unknown
>
Returns
string
|
Buffer
|
Stream
Optional
on
Unsupported
Request
Encoding
on
Unsupported
Request
Encoding
?:
(
(
encoding
,
request
,
reply
)
=>
undefined
|
null
|
Error
)
Type declaration
(
encoding
,
request
,
reply
)
:
undefined
|
null
|
Error
Parameters
encoding
:
string
request
:
FastifyRequest
<
RouteGenericInterface
,
RawServerDefault
,
IncomingMessage
,
FastifySchema
,
FastifyTypeProviderDefault
,
unknown
,
FastifyBaseLogger
,
ResolveFastifyRequestType
<
FastifyTypeProviderDefault
,
FastifySchema
,
RouteGenericInterface
>
>
reply
:
FastifyReply
<
RawServerDefault
,
IncomingMessage
,
ServerResponse
<
IncomingMessage
>
,
RouteGenericInterface
,
unknown
,
FastifySchema
,
FastifyTypeProviderDefault
,
unknown
>
Returns
undefined
|
null
|
Error
Optional
remove
Content
Length
Header
remove
Content
Length
Header
?:
boolean
Optional
request
Encodings
request
Encodings
?:
EncodingToken
[]
Optional
threshold
threshold
?:
number
Optional
zlib
zlib
?:
unknown
Optional
zlib
Options
zlib
Options
?:
ZlibOptions
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
brotli
Options
custom
Types
encodings
force
Request
Encoding
global
inflate
If
Deflated
on
Invalid
Request
Payload
on
Unsupported
Encoding
on
Unsupported
Request
Encoding
remove
Content
Length
Header
request
Encodings
threshold
zlib
zlib
Options
Astro Node.js Fastify adapter - v0.0.12
Loading...