Module httptest::matchers [−][src]
Matcher implementations.
This module contains matchers for composing a set of operations. The result of the composition usually results in a boolean.
Modules
request | Matchers that extract information from HTTP requests. |
Macros
all_of | true if all the provided matchers return true. |
any_of | true if any of the provided matchers return true. |
Structs
AllOf | The |
Any | The |
AnyOf | The |
Contains | The |
Eq | The |
ExecutionContext | An ExecutionContext tracks how Matchers are chained together. There is a single public method called chain that when used to chain input from one matcher to another will allow tracking the flow of data across composable matchers. |
JsonDecoded | The |
KV | A key-value pair. |
Key | The |
Len | The |
Lowercase | The |
Matches | The |
Not | The |
UrlDecoded | The |
Value | The |
Traits
IntoRegex | Create a regex. |
Matcher | The core trait. Defines how an input value should be turned into an output value. This allows for a flexible pattern of composition where two or more matchers are chained together to form a readable and flexible manipulation. |
Functions
all_of | true if all the provided matchers return true. See the |
any | Always true. |
any_of | true if any of the provided matchers returns true. See the |
contains | true if any input element matches the provided mapper. |
eq | true if the input is equal to value. |
json_decoded | json decode the input and pass the resulting value to the inner mapper. If the input cannot be decoded a false value is returned. |
key | extract the key from a key-value pair. |
len | extract the length of the input. |
lowercase | lowercase the input and pass it to the next mapper. |
matches | true if the input matches the regex provided. |
not | invert the result of the inner mapper. |
url_decoded | url decode the input and pass the resulting slice of key-value pairs to the next mapper. |
value | extract the value from a key-value pair. |