ipfs-chromium
Loading...
Searching...
No Matches
response.h
1#ifndef IPFS_RESPONSE_H_
2#define IPFS_RESPONSE_H_
3
4#include "ipld/dag_headers.h"
5
6#include <vocab/byte.h>
7
8#include <cstdint>
9#include <string>
10#include <vector>
11
12namespace ipfs {
13
17struct Response {
18 std::string mime_;
19 std::uint16_t status_;
20 std::string body_;
21 std::string location_;
22 ipld::DagHeaders headers_;
23
24 static Response PLAIN_NOT_FOUND;
25 static Response IMMUTABLY_GONE;
26 static Response HOST_NOT_FOUND_RESPONSE;
30 static Response html(std::string_view body, std::string_view location = {});
31};
32
33} // namespace ipfs
34
35#endif // IPFS_RESPONSE_H_
Definition dag_headers.h:13
Definition response.h:17
static Response html(std::string_view body, std::string_view location={})