class test_request
#
-
class test_request#
A type representing client’s incoming request for testing purpose.
Public Functions
-
inline auto headers() const noexcept -> const http::header_map&#
Get HTTP headers.
-
inline auto body() const noexcept -> const any_body&#
Get body.
-
inline auto builder() -> test_request_builder#
Create the builder for further modification.
- DESCRIPTION
Create the builder for further modification. Note that current object is no longer usable after calling this function.
Public Static Functions
-
static inline auto get() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
static inline auto post() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
static inline auto put() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
static inline auto patch() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
static inline auto delete_() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
static inline auto head() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
static inline auto options() -> test_request_builder#
Construct a
test_request_builder
with specific HTTP method.
-
inline auto headers() const noexcept -> const http::header_map&#