Remote Call Framework 3.4
RCF::HttpEndpoint Class Reference

Represents a HTTP endpoint. More...

#include <HttpEndpoint.hpp>

Inheritance diagram for RCF::HttpEndpoint:
RCF::TcpEndpoint RCF::Endpoint

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HttpEndpoint() [1/3]

RCF::HttpEndpoint::HttpEndpoint ( int  port)

Constructs an HTTP endpoint on the given port number.

◆ HttpEndpoint() [2/3]

RCF::HttpEndpoint::HttpEndpoint ( const std::string &  ip,
int  port 
)

Constructs an HTTP endpoint on the given IP address and port number.

◆ HttpEndpoint() [3/3]

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.

Member Function Documentation

◆ asString()

std::string RCF::HttpEndpoint::asString ( ) const
virtual

Returns a string representation of the HTTP endpoint.

Implements RCF::Endpoint.


The documentation for this class was generated from the following file: