Skip to content
Merged
Prev Previous commit
Next Next commit
Rename get_http_version and get_remote_address without 'get_' prefix …
…for consistency with rest of class public interface
  • Loading branch information
garethsb committed Oct 24, 2017
commit 1ba5ebfdb2d71d97938ecb6956a6b5bb94295794
4 changes: 2 additions & 2 deletions Release/include/cpprest/http_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -901,13 +901,13 @@ class http_request
/// Returns the HTTP protocol version of this request message.
/// </summary>
/// <returns>The HTTP protocol version.</returns>
const http_version& get_http_version() const { return _m_impl->http_version(); }
const http_version& http_version() const { return _m_impl->http_version(); }

/// <summary>
/// Returns a string representation of the remote IP address.
/// </summary>
/// <returns>The remote IP address.</returns>
const utility::string_t& get_remote_address() const { return _m_impl->remote_address(); }
const utility::string_t& 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ TEST_FIXTURE(uri_address, remote_address)

listener.support(methods::GET, [&requestCount](http_request request)
{
const string_t& remoteAddr = request.get_remote_address();
const string_t& remoteAddr = request.remote_address();
const string_t& localhost4 = string_t(U("127.0.0.1"));
const string_t& localhost6 = string_t(U("::1"));

Expand Down