class test_request#

class test_request#

A type representing client’s incoming request for testing purpose.

Public Functions

inline auto method() const noexcept -> http::verb#

Get HTTP method.

inline auto version() const noexcept -> const http::version&#

Get HTTP version.

inline auto headers() const noexcept -> const http::header_map&#

Get HTTP headers.

inline auto query() const noexcept -> const query_map&#

Get query string.

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.