Menu

[r224]: / trunk / boost / network / protocol / http / header.hpp  Maximize  Restore  History

Download this file

38 lines (28 with data), 801 Bytes

 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
//
// header.hpp
// ~~~~~~~~~~
//
// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2009 Dean Michael Berris (mikhailberis@gmail.com)
// Copyright (c) 2009 Tarroo, Inc.
//
// 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)
//
#ifndef HTTP_SERVER3_HEADER_HPP
#define HTTP_SERVER3_HEADER_HPP
#include <string>
namespace boost { namespace network { namespace http {
struct request_header
{
std::string name;
std::string value;
};
inline void swap(request_header & l, request_header & r) {
swap(l.name, r.name);
swap(l.value, r.value);
}
} // namespace http
} // namespace network
} // namespace boost
#endif // HTTP_SERVER3_HEADER_HPP