Preparing search index...
The search index is not available
mockttp
mockttp
requestHandlers
RequestHandler
Interface RequestHandler
interface
RequestHandler
{
type
:
|
"file"
|
"stream"
|
"timeout"
|
"callback"
|
"simple"
|
"passthrough"
|
"close-connection"
|
"reset-connection"
|
"json-rpc-response"
;
dispose
(
)
:
void
;
explain
(
)
:
string
;
handle
(
request
:
OngoingRequest
,
response
:
OngoingResponse
,
options
:
RequestHandlerOptions
)
:
Promise
<
void
>
;
}
Hierarchy (
view full
)
RequestHandlerDefinition
RequestHandler
Index
Properties
type
Methods
dispose
explain
handle
Properties
type
type
:
|
"file"
|
"stream"
|
"timeout"
|
"callback"
|
"simple"
|
"passthrough"
|
"close-connection"
|
"reset-connection"
|
"json-rpc-response"
Methods
dispose
dispose
(
)
:
void
Returns
void
explain
explain
(
)
:
string
Returns
string
handle
handle
(
request
,
response
,
options
)
:
Promise
<
void
>
Parameters
request
:
OngoingRequest
response
:
OngoingResponse
options
:
RequestHandlerOptions
Returns
Promise
<
void
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
type
Methods
dispose
explain
handle
mockttp
Loading...