Better Payment 0.11.1 API
Guides
Preparing search index...
adapters/fastify
FastifyInstanceLike
Interface FastifyInstanceLike
The parts of a Fastify instance the plugin uses
interface
FastifyInstanceLike
{
addContentTypeParser
(
contentType
:
string
,
options
:
{
parseAs
:
"string"
}
,
parser
:
(
request
:
unknown
,
body
:
string
,
done
:
(
error
:
Error
|
null
,
body
?:
unknown
)
=>
void
,
)
=>
void
,
)
:
void
;
all
(
path
:
string
,
handler
:
(
request
:
FastifyRequestLike
,
reply
:
FastifyReplyLike
,
)
=>
Promise
<
unknown
>
,
)
:
unknown
;
hasContentTypeParser
(
contentType
:
string
)
:
boolean
;
}
Index
Methods
add
Content
Type
Parser
all
has
Content
Type
Parser
Methods
add
Content
Type
Parser
addContentTypeParser
(
contentType
:
string
,
options
:
{
parseAs
:
"string"
}
,
parser
:
(
request
:
unknown
,
body
:
string
,
done
:
(
error
:
Error
|
null
,
body
?:
unknown
)
=>
void
,
)
=>
void
,
)
:
void
Parameters
contentType
:
string
options
:
{
parseAs
:
"string"
}
parser
:
(
request
:
unknown
,
body
:
string
,
done
:
(
error
:
Error
|
null
,
body
?:
unknown
)
=>
void
,
)
=>
void
Returns
void
all
all
(
path
:
string
,
handler
:
(
request
:
FastifyRequestLike
,
reply
:
FastifyReplyLike
,
)
=>
Promise
<
unknown
>
,
)
:
unknown
Parameters
path
:
string
handler
:
(
request
:
FastifyRequestLike
,
reply
:
FastifyReplyLike
)
=>
Promise
<
unknown
>
Returns
unknown
has
Content
Type
Parser
hasContentTypeParser
(
contentType
:
string
)
:
boolean
Parameters
contentType
:
string
Returns
boolean
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
Content
Type
Parser
all
has
Content
Type
Parser
Guides
Better Payment 0.11.1 API
Loading...
The parts of a Fastify instance the plugin uses