Represents a HTTP endpoint. More...
#include <HttpEndpoint.hpp>
Public Member Functions | |
HttpEndpoint (int port) | |
Constructs an HTTP endpoint on the given port number. | |
HttpEndpoint (const std::string &ip, int port) | |
Constructs an HTTP endpoint on the given IP address and port number. | |
std::string | asString () const |
Returns a string representation of the HTTP endpoint. | |
![]() | |
TcpEndpoint (int port) | |
Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 . | |
TcpEndpoint (const std::string &ip, int port) | |
Constructs a TcpEndpoint from an IP address and port number. | |
std::string | getIp () const |
Gets the IP address of the TcpEndpoint. | |
int | getPort () const |
Gets the port number of the TcpEndpoint. | |
std::string | asString () const |
Returns a string representation of the TcpEndpoint. | |
Represents a HTTP endpoint.