Skip to content

Commit d0ad122

Browse files
committed
Minimal interface required for responses.
1 parent ddbfba2 commit d0ad122

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_RESPONSE_BASE_HPP_20110930
2+
#define BOOST_NETWORK_PROTOCOL_HTTP_RESPONSE_BASE_HPP_20110930
3+
4+
// Copyright 2011 Dean Michael Berris <dberris@google.com>.
5+
// Copyright 2011 Google, Inc.
6+
// Distributed under the Boost Software License, Version 1.0.
7+
// (See accompanying file LICENSE_1_0.txt or copy at
8+
// http://www.boost.org/LICENSE_1_0.txt)
9+
10+
namespace boost { namespace network { namespace http {
11+
12+
struct response_base : message_base {
13+
virtual void set_status(std::string const & new_status) = 0;
14+
virtual void set_status_message(std::string const & new_status_message) = 0;
15+
virtual void set_version(std::string const & new_version) = 0;
16+
virtual ~response_base() = 0;
17+
};
18+
19+
response_base::~response_base() {}
20+
21+
} /* http */
22+
23+
} /* network */
24+
25+
} /* boost */
26+
27+
#endif /* BOOST_NETWORK_PROTOCOL_HTTP_RESPONSE_BASE_HPP_20110930 */

0 commit comments

Comments
 (0)