Interface that describes a single HTTP response, implemented by client app when overriding HttpDelegate.
More...
#include <src/api/mip/http_response.h>
|
virtual const std::vector< uint8_t > & | GetBody () const =0 |
| Get request body.
|
|
virtual const std::map< std::string, std::string, CaseInsensitiveComparator > & | GetHeaders () const =0 |
| Get request headers.
|
|
virtual const std::string & | GetId () const =0 |
| Gets response ID.
|
|
virtual int32_t | GetStatusCode () const =0 |
| Get response status code.
|
|
Interface that describes a single HTTP response, implemented by client app when overriding HttpDelegate.
Definition at line 46 of file http_response.h.
◆ GetBody()
virtual const std::vector< uint8_t > & HttpResponse::GetBody |
( |
| ) |
const |
|
pure virtual |
Get request body.
- Returns
- Request body
◆ GetHeaders()
virtual const std::map< std::string, std::string, CaseInsensitiveComparator > & HttpResponse::GetHeaders |
( |
| ) |
const |
|
pure virtual |
Get request headers.
- Returns
- Request headers
◆ GetId()
virtual const std::string & HttpResponse::GetId |
( |
| ) |
const |
|
pure virtual |
Gets response ID.
- Returns
- Response ID
- Note
- The corresponding HttpRequest will have had the same ID
◆ GetStatusCode()
virtual int32_t HttpResponse::GetStatusCode |
( |
| ) |
const |
|
pure virtual |
Get response status code.
- Returns
- Status code
The documentation for this class was generated from the following file: