mockttp
Preparing search index...
matchers
RequestMatcher
Interface RequestMatcher
interface
RequestMatcher
{
type
:
|
"port"
|
"header"
|
"method"
|
"host"
|
"cookie"
|
"protocol"
|
"query"
|
"hostname"
|
"callback"
|
"wildcard"
|
"simple-path"
|
"regex-path"
|
"regex-url"
|
"exact-query-string"
|
"form-data"
|
"multipart-form-data"
|
"raw-body"
|
"raw-body-regexp"
|
"raw-body-includes"
|
"json-body"
|
"json-body-matching"
;
dispose
()
:
void
;
explain
()
:
string
;
matches
(
request
:
OngoingRequest
)
:
MaybePromise
<
boolean
>
;
}
Hierarchy (
View Summary
)
Explainable
Serializable
RequestMatcher
Implemented by
CallbackMatcher
CookieMatcher
ExactQueryMatcher
FlexiblePathMatcher
FormDataMatcher
HeaderMatcher
HostMatcher
HostnameMatcher
JsonBodyFlexibleMatcher
JsonBodyMatcher
MethodMatcher
MultipartFormDataMatcher
PortMatcher
ProtocolMatcher
QueryMatcher
RawBodyIncludesMatcher
RawBodyMatcher
RegexBodyMatcher
RegexPathMatcher
RegexUrlMatcher
WildcardMatcher
Index
Properties
type
Methods
dispose
explain
matches
Properties
type
type
:
|
"port"
|
"header"
|
"method"
|
"host"
|
"cookie"
|
"protocol"
|
"query"
|
"hostname"
|
"callback"
|
"wildcard"
|
"simple-path"
|
"regex-path"
|
"regex-url"
|
"exact-query-string"
|
"form-data"
|
"multipart-form-data"
|
"raw-body"
|
"raw-body-regexp"
|
"raw-body-includes"
|
"json-body"
|
"json-body-matching"
Methods
dispose
dispose
()
:
void
Returns
void
explain
explain
()
:
string
Returns
string
matches
matches
(
request
:
OngoingRequest
)
:
MaybePromise
<
boolean
>
Parameters
request
:
OngoingRequest
Returns
MaybePromise
<
boolean
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Properties
type
Methods
dispose
explain
matches
mockttp
Loading...