userver
C++ Async Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
form_data_arg.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/server/http/form_data_arg.hpp
4
/// @brief @copybrief server::http::FormDataArg
5
6
#
include
<
optional
>
7
#
include
<
string
>
8
#
include
<
string_view
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
server::
http
{
13
14
/// @brief Argument of a multipart/form-data request
15
struct
FormDataArg
{
16
std::string_view value;
17
std::string_view content_disposition;
18
std::optional<std::string> filename;
19
std::optional<std::string> default_charset;
20
std::optional<std::string_view> content_type;
21
22
bool
operator==(
const
FormDataArg
& r)
const
{
23
return
value == r.value && content_disposition == r.content_disposition && filename == r.filename &&
24
default_charset == r.default_charset && content_type == r.content_type;
25
}
26
27
std::string Charset()
const
;
28
29
std::string ToDebugString()
const
;
30
};
31
32
}
// namespace server::http
33
34
USERVER_NAMESPACE_END
userver
server
http
form_data_arg.hpp
Generated on
for userver by
Doxygen
1.17.0