17#ifndef TOOLBOX_HTTP_REQUEST_HPP
18#define TOOLBOX_HTTP_REQUEST_HPP
25inline namespace http {
27using Headers = std::vector<std::pair<std::string, std::string>>;
43 const std::string&
url() const noexcept {
return url_; }
45 const std::string&
body() const noexcept {
return body_; }
49 method_ = Method::Get;
59 if (first == First::Yes) {
60 headers_.emplace_back(std::string{
sv.data(),
sv.size()},
"");
62 headers_.back().first.append(
sv.data(),
sv.size());
67 headers_.back().second.append(
sv.data(),
sv.size());
72 Method method_{Method::Get};