Preparing search index...
The search index is not available
mockttp
mockttp
requestHandlers
SimpleHandler
Class SimpleHandler
Hierarchy (
view full
)
SimpleHandlerDefinition
SimpleHandler
Index
Constructors
constructor
Properties
data?
headers?
status
status
Message?
trailers?
type
Methods
dispose
explain
handle
Constructors
constructor
new
Simple
Handler
(
status
,
statusMessage
?
,
data
?
,
headers
?
,
trailers
?
)
:
SimpleHandler
Parameters
status
:
number
Optional
statusMessage
:
string
Optional
data
:
|
string
|
Uint8Array
|
Buffer
|
SerializedBuffer
Optional
headers
:
Headers
Optional
trailers
:
Trailers
Returns
SimpleHandler
Properties
Optional
data
data
?:
|
string
|
Uint8Array
|
Buffer
|
SerializedBuffer
Optional
headers
headers
?:
Headers
status
status
:
number
Optional
status
Message
status
Message
?:
string
Optional
trailers
trailers
?:
Trailers
Readonly
type
type
:
"simple"
= 'simple'
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
data
headers
status
status
Message
trailers
type
Methods
dispose
explain
handle
mockttp
Loading...