Response object.
More...
#include <mock_server.h>
◆ Response()
httpmock::MockServer::Response::Response |
( |
int |
status = 200 , |
|
|
const std::string & |
body = "OK" |
|
) |
| |
|
inlineexplicit |
◆ addHeader()
Response& httpmock::MockServer::Response::addHeader |
( |
const Header & |
h | ) |
|
|
inline |
Add header to the response.
◆ body
std::string httpmock::MockServer::Response::body |
◆ headers
std::vector<Header> httpmock::MockServer::Response::headers |
◆ status
int httpmock::MockServer::Response::status |
Status code returned to the client.
The documentation for this struct was generated from the following file:
- /home/runner/work/httpmockserver/httpmockserver/include/httpmockserver/mock_server.h