Preparing search index...
The search index is not available
mockttp
mockttp
requestHandlers
CallbackHandler
Class CallbackHandler
Hierarchy (
view full
)
CallbackHandlerDefinition
CallbackHandler
Index
Constructors
constructor
Properties
callback
type
Methods
dispose
explain
handle
Constructors
constructor
new
Callback
Handler
(
callback
)
:
CallbackHandler
Parameters
callback
:
(
(
request
:
CompletedRequest
)
=>
MaybePromise
<
CallbackResponseResult
>
)
(
request
)
:
MaybePromise
<
CallbackResponseResult
>
Parameters
request
:
CompletedRequest
Returns
MaybePromise
<
CallbackResponseResult
>
Returns
CallbackHandler
Properties
callback
callback
:
(
(
request
:
CompletedRequest
)
=>
MaybePromise
<
CallbackResponseResult
>
)
Readonly
type
type
:
"callback"
= 'callback'
Methods
dispose
dispose
(
)
:
void
Returns
void
explain
explain
(
)
:
string
Returns
string
handle
handle
(
request
,
response
)
:
Promise
<
void
>
Parameters
request
:
OngoingRequest
response
:
OngoingResponse
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
callback
type
Methods
dispose
explain
handle
mockttp
Loading...