Skip to content
Prev Previous commit
Restore get_remote_address to avoid breaking source compat
  • Loading branch information
ras0219-msft committed Jan 24, 2018
commit 154e322e02936d22eb389f2fa3a757370fb1ff0d
3 changes: 3 additions & 0 deletions Release/include/cpprest/http_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,9 @@ class http_request
/// <returns>The remote IP address.</returns>
const utility::string_t& remote_address() const { return _m_impl->remote_address(); }

CASABLANCA_DEPRECATED("Use `remote_address()` instead.")
const utility::string_t& get_remote_address() const { return _m_impl->remote_address(); }

/// <summary>
/// Extract the body of the request message as a string value, checking that the content type is a MIME text type.
/// A body can only be extracted once because in some cases an optimization is made where the data is 'moved' out.
Expand Down