ipfs-chromium
Loading...
Searching...
No Matches
gateway_request_type.h
1#ifndef IPFS_CHROMIUM_GATEWAY_REQUEST_TYPE_H
2#define IPFS_CHROMIUM_GATEWAY_REQUEST_TYPE_H
3
4#include <optional>
5#include <string_view>
6
7namespace ipfs::gw {
8enum class GatewayRequestType : char {
9 Block,
10 Car,
11 Ipns,
12 DnsLink,
13 Providers,
14 Identity,
15 Zombie
16};
17std::string_view name(GatewayRequestType t);
18std::optional<GatewayRequestType> from_name(std::string_view);
19constexpr std::size_t RequestTypeCount =
20 static_cast<std::size_t>(gw::GatewayRequestType::Zombie);
21} // namespace ipfs::gw
22
23#endif // IPFS_CHROMIUM_GATEWAY_REQUEST_TYPE_H