1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
// Copyright Maarten L. Hekkelman, Radboud University 2008-2013.
// Copyright Maarten L. Hekkelman, 2014-2026
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
/// \file
/// definition of the zeep::http::header class
#include <string>
#include <utility>
namespace zeep::http
{
/// The header object contains the header lines as found in a
/// HTTP Request. The lines are parsed into name / value pairs.
struct header
{
std::string name;
std::string value;
header() = default;
header(const header &) = default;
header &operator=(const header &) = default;
header &operator=(header &&) = default;
header(std::string name, std::string value)
: name(std::move(name))
, value(std::move(value))
{
}
};
} // namespace zeep::http
|