Represents a HTTP endpoint. More...
#include <HttpEndpoint.hpp>
Public Member Functions | |
HttpEndpoint (int port) | |
Constructs an HTTP endpoint on the given port number. More... | |
HttpEndpoint (const std::string &ip, int port) | |
Constructs an HTTP endpoint on the given IP address and port number. More... | |
HttpEndpoint (const std::string &ip, int port, const std::string &urlPath) | |
Constructs an HTTP endpoint on the given IP address, port number and URL path component. More... | |
std::string | asString () const |
Returns a string representation of the HTTP endpoint. More... | |
Public Member Functions inherited from RCF::TcpEndpoint | |
TcpEndpoint (int port) | |
Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 . More... | |
TcpEndpoint (const std::string &ip, int port) | |
Constructs a TcpEndpoint from an IP address and port number. More... | |
std::string | getIp () const |
Gets the IP address of the TcpEndpoint. More... | |
int | getPort () const |
Gets the port number of the TcpEndpoint. More... | |
std::string | asString () const |
Returns a string representation of the TcpEndpoint. More... | |
Represents a HTTP endpoint.
RCF implements HTTP endpoints with an HTTP envelope around the native RCF protocol. The primary use case for HttpEndpoint is client/server communication that may need to pass through forward or reverse HTTP proxies.
RCF::HttpEndpoint::HttpEndpoint | ( | int | port | ) |
Constructs an HTTP endpoint on the given port number.
RCF::HttpEndpoint::HttpEndpoint | ( | const std::string & | ip, |
int | port | ||
) |
Constructs an HTTP endpoint on the given IP address and port number.
RCF::HttpEndpoint::HttpEndpoint | ( | const std::string & | ip, |
int | port, | ||
const std::string & | urlPath | ||
) |
Constructs an HTTP endpoint on the given IP address, port number and URL path component.
|
virtual |
Returns a string representation of the HTTP endpoint.
Implements RCF::Endpoint.