HttpService Class Reference

#include <Pt/XmlRpc/HttpService.h>

HTTP service for XML-RPC. More...

Inherits Service.

Public Member Functions

 HttpService (Remoting::ServiceDefinition &rpcService)
 Constructs with RPC service.
virtual ~HttpService ()
 Destructor.
RespondergetResponder (const Request &)
 Creates a responder to handle request received by a server.
void releaseResponder (Responder *)
 Destroys a responder created by a server.
Signal< IOStream *, const std::string & > & upgradeRequested ()
 Returns the signal emitted when a request upgrades to this service.

Protected Member Functions

virtual Http::ResponderonGetResponder (const Http::Request &)
 Creates a responder to handle request received by a server.
virtual void onReleaseResponder (Http::Responder *resp)
 Destroys a responder created by a server.

Detailed Description

The HttpService makes the procedures registered in a XML-RPC ServiceDefinition available as a HTTP service. Use the HttpClient to run a RemoteProcedure accessing this service.

Member Function Documentation

◆ upgradeRequested()

Signal< IOStream *, const std::string & > & upgradeRequested ( )
inherited

The signal provides the accepted stream and the value of the request's Upgrade header.