Crate noir [−] [src]
noir is a request driven, black box testing library for HTTP based APIs.
Macros
form! |
A macro for creating a |
headers! |
A convenience macro for creating a vector of |
hyper_client! |
A macro for intercepting |
mocks! |
A convenience macro for creating a vector of |
query! |
A macro for creating a |
responses! |
A convenience macro for creating a vector of |
Structs
HttpBody |
An abstraction over different data types used for HTTP request bodies. |
HttpFormData |
An abstraction over HTTP form data. |
HttpHeader |
An abstraction over different |
HttpQueryString |
An abstraction over a HTTP query string. |
HttpRequest |
A HTTP request for API testing. |
HttpResponse |
A mocked HTTP response that is being provided to a testable API. |
MockResponseProvider |
An interface for |
Options |
Additional configuration options for API requests and responses. |
Traits
HttpApi |
A trait for the description of a testable, HTTP based API. |
HttpEndpoint |
A trait for the description of a HTTP based endpoint used to provided mocked responses to a testable API. |
MockProvider |
A trait for implementation of a custom mock provider. |
MockRequest |
A trait for implementation of a request matched against concrete types of
|
MockResponse |
A trait for implementation of a response provided to a concrete type of
|
Type Definitions
MockRequestResponse |
A response to a request made against a mocked endpoint. |