An HTTP response.
More...
#include <luciad/net/http/HttpResponse.h>
An HTTP response.
An HttpResponse instance is built through an luciad::HttpResponse::Builder
.
This class provides methods for accessing the response status code, headers and the response body.
- Since
- 2023.0
◆ HttpResponse() [1/2]
luciad::HttpResponse::HttpResponse |
( |
const HttpResponse & |
other | ) |
|
◆ HttpResponse() [2/2]
◆ ~HttpResponse()
luciad::HttpResponse::~HttpResponse |
( |
| ) |
|
◆ getBody()
const std::optional< DataEntity > & luciad::HttpResponse::getBody |
( |
| ) |
const |
Returns the body of this response.
- Returns
- the body of this response.
◆ getHeaders()
const std::vector< HttpHeader > & luciad::HttpResponse::getHeaders |
( |
| ) |
const |
Returns the received response headers.
- Returns
- the received response headers.
◆ getStatusCode()
int32_t luciad::HttpResponse::getStatusCode |
( |
| ) |
const |
Returns the status code for this response.
- Returns
- the status code for this response.
◆ newBuilder()
static Builder luciad::HttpResponse::newBuilder |
( |
| ) |
|
|
static |
◆ operator=()