userver: userver/server/http/form_data_arg.hpp Source File
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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
10USERVER_NAMESPACE_BEGIN
11
12namespace server::http {
13
14/// @brief Argument of a multipart/form-data request
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 &&
24 filename == r.filename && default_charset == r.default_charset &&
25 content_type == r.content_type;
26 }
27
28 std::string Charset() const;
29
30 std::string ToDebugString() const;
31};
32
33} // namespace server::http
34
35USERVER_NAMESPACE_END