#include <library/include/ipfs_client/response.h>
|
static Response | html (std::string_view body, std::string_view location={}) |
|
|
std::string | mime_ |
|
std::uint16_t | status_ |
|
std::string | body_ |
|
std::string | location_ |
|
ipld::DagHeaders | headers_ |
|
Response to an IpfsRequest
Roughly mimics some aspects of an HTTP response, as some frameworks want to handle it as one.
◆ html()
static Response ipfs::Response::html |
( |
std::string_view |
body, |
|
|
std::string_view |
location = {} |
|
) |
| |
|
static |
- Parameters
-
body | HTML text (the response of the body, not the <body> |
location | The Location header |
The documentation for this struct was generated from the following file: