Add accessor for raw http requests references #266

This commit is contained in:
Peter Thorson
2013-06-22 10:59:26 -05:00
parent de5684aef3
commit 7d36965149
2 changed files with 21 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
HEAD
- Fix issue compiling with WEBSOCKETPP_STRICT_MASKING
- Add `get_request()` pass through method to connection to allow calling methods
specific to the HTTP policy in use.
- Fix issue compiling with `WEBSOCKETPP_STRICT_MASKING`
- Add additional macro guards for use with boost_config. Thank you breyed
for testing and code. #261

View File

@@ -833,6 +833,24 @@ public:
*/
void remove_header(const std::string &key);
/// Get request object
/**
* Direct access to request object. This can be used to call methods of the
* request object that are not part of the standard request API that
* connection wraps.
*
* Note use of this method involves using behavior specific to the
* configured HTTP policy. Such behavior may not work with alternate HTTP
* policies.
*
* @since 0.3.0-alpha3
*
* @return A const reference to the raw request object
*/
request_type const & get_request() const {
return m_request;
}
/////////////////////////////////////////////////////////////
// Pass-through access to the other connection information //
/////////////////////////////////////////////////////////////