kaycxx-http
HTTP client library
Loading...
Searching...
No Matches
kaycxx
http
multipart_form.hpp
1
// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2
// SPDX-License-Identifier: MIT
3
4
#pragma once
5
6
#include <kaycxx/http/multipart_part.hpp>
7
8
#include <initializer_list>
9
#include <vector>
10
11
namespace
kaycxx::http {
12
13
class
client
;
14
20
class
multipart_form
{
21
public
:
23
multipart_form
() noexcept;
24
32
multipart_form
(std::initializer_list<
multipart_part
> parts);
33
39
void
add
(
multipart_part
part);
40
41
private:
43
std::vector<
multipart_part
> parts_{};
44
45
friend
class
client
;
46
};
47
48
}
// namespace kaycxx::http
kaycxx::http::client
Synchronous HTTP client.
Definition
client.hpp:24
kaycxx::http::multipart_form::multipart_form
multipart_form() noexcept
Creates an empty multipart form.
kaycxx::http::multipart_form::add
void add(multipart_part part)
Adds a form part.
kaycxx::http::multipart_part
Part of a multipart/form-data request body.
Definition
multipart_part.hpp:16
Generated by
1.15.0