Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 0.844 kb
// Copyright 2010 Dean Michael Berris.
// Copyright 2012 Google, 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 NETWORK_PROTOCOL_HTTP_MESSAGE_HEADER_NAME_HPP_20101028
#define NETWORK_PROTOCOL_HTTP_MESSAGE_HEADER_NAME_HPP_20101028
#include <network/protocol/http/message/header.hpp>
#include <utility>
namespace network {
namespace http {
template <class T1, class T2>
inline T1 const &
name(std::pair<T1,T2> const & p) {
return p.first;
}
inline std::string const &
name(request_header const & h) {
return h.name;
}
inline std::string const &
name(response_header const & h) {
return h.name;
}
} // namespace http
} // namespace network
#endif /* NETWORK_PROTOCOL_HTTP_MESSAGE_HEADER_NAME_HPP_20101028 */
Jump to Line
Something went wrong with that request. Please try again.