24 #ifndef SEASTAR_MODULE
25 #include <unordered_map>
28 #include <seastar/core/sstring.hh>
29 #include <seastar/core/iostream.hh>
35 output_stream<char> make_http_chunked_output_stream(output_stream<char>& out);
39 output_stream<char> make_http_content_length_output_stream(output_stream<char>& out,
size_t total_len,
size_t& bytes_written);
45 SEASTAR_MODULE_EXPORT_BEGIN
48 std::unordered_map<sstring, sstring> params;
50 const sstring& path(
const sstring& key)
const {
51 return params.at(key);
54 sstring operator[](
const sstring& key)
const {
55 return params.at(key).substr(1);
58 const sstring& at(
const sstring& key)
const {
62 bool exists(
const sstring& key)
const {
63 return params.find(key) != params.end();
66 void set(
const sstring& key,
const sstring& value) {
77 GET, POST, PUT, DELETE, HEAD, OPTIONS, TRACE, CONNECT, NUM_OPERATION
85 operation_type str2type(
const sstring& type);
92 sstring type2str(operation_type type);
96 SEASTAR_MODULE_EXPORT_END
Seastar API namespace.
Definition: abort_on_ebadf.hh:26