HttpService Class Reference

#include <Pt/Mcp/HttpService.h>

HTTP service for MCP. More...

Inherits Service.

Public Member Functions

 HttpService (Remoting::ServiceDefinition &serviceDef, const ToolDeclaration &decl)
 Constructs with service definition and tool declaration.
 
virtual ~HttpService ()
 Destructor.
 
Responder * getResponder (const Request &)
 Creates a responder to handle request received by a server.
 
void releaseResponder (Responder *)
 Destroys a responder created by a server.
 

Protected Member Functions

virtual Http::ResponderonGetResponder (const Http::Request &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

Makes the tools registered in a ToolDeclaration available as an HTTP service. Handles initialize, tools/list, and tools/call requests via HTTP POST.