forked from hzane/libhttpsvr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhttp_headers.h
More file actions
20 lines (17 loc) · 736 Bytes
/
http_headers.h
File metadata and controls
20 lines (17 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <map>
struct http_headers_t {
using scontainer_t = std::multimap<tpio_string, tpio_string>;
using icontainer_t = std::map<uintptr_t, tpio_string>;
scontainer_t _unknown_headers;
icontainer_t _known_headers;
auto set( tpio_string const&name, tpio_string const&value )->void;
auto add( tpio_string const&name, tpio_string const&value )->void;
auto remove( tpio_string const&name, tpio_string const&value )->void;
auto del( tpio_string const&name )->void;
auto get( tpio_string const&name )->tpio_string;
auto set( uintptr_t name, tpio_string const&value )->void;
auto get( uintptr_t id )->tpio_string;
auto has(uintptr_t id)->bool;
};
using http_headers = std::shared_ptr<http_headers_t>;