29 #ifndef Pt_XmlRpc_HttpClient_h
30 #define Pt_XmlRpc_HttpClient_h
32 #include <Pt/XmlRpc/Api.h>
33 #include <Pt/XmlRpc/Client.h>
34 #include <Pt/Http/Client.h>
35 #include <Pt/Connectable.h>
64 const std::string& url);
101 const std::string& url);
141 virtual void onEndInvoke();
153 void setError(
bool f =
true)
176 #endif // Pt_XmlRpc_HttpClient_h
Core module.
Definition: pt-gfx-images.dox:14
HTTP request message.
Definition: Request.h:44
HTTP reply message.
Definition: Reply.h:44
void setTarget(const Net::Endpoint &ep, const std::string &url)
Sets target host and service URL.
void setPeerName(const std::string &peer)
Set expected SSL peer name.
HttpClient(System::EventLoop &loop, const Net::Endpoint &ep, const std::string &url)
Construct with host and service URL.
virtual void onBeginInvoke()
An asynchronous remote procedure is invoked.
A client for remote procedure calls.
Definition: Client.h:53
virtual bool isFailed() const
Indicates if the procedure has failed.
System::EventLoop * loop() const
Gets the used EventLoop.
virtual void onCancel()
Cancels the remote procedure call.
void setServiceUrl(const char *url)
Sets the service URL.
void setServiceUrl(const std::string &url)
Sets the service URL.
HttpClient(System::EventLoop &loop)
Construct with EventLoop used for I/O.
void setTarget(const Net::Endpoint &ep, const Net::TcpSocketOptions &opts, const std::string &url)
Sets target host and service URL.
Connection Management for Signal and Slot Objects.
Definition: Connectable.h:50
A client for remote procedure calls via HTTP.
Definition: HttpClient.h:47
Represents a Network Host.
Definition: Endpoint.h:47
void setActive(System::EventLoop &loop)
Sets the EventLoop to use for I/O.
void setHost(const Net::Endpoint &ep, const Net::TcpSocketOptions &opts)
Sets host to connect.
An HTTP client.
Definition: Client.h:78
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:74
virtual void onInvoke()
A synchronous remote procedure is called.
void setHost(const Net::Endpoint &ep)
Sets host to connect.
void setSecure(Ssl::Context &ctx)
Sets SSL context.
void setTimeout(std::size_t timeout)
Sets timeout for I/O operations.
void setKeepAlive()
Enables HTTP keep-alive.
virtual ~HttpClient()
Destructor.
const Net::Endpoint & host() const
Returns target host.
TCP socket options.
Definition: TcpSocket.h:49
HttpClient(const Net::Endpoint &ep, const std::string &url)
Construct with host and service URL.
void close()
Closes the connection.
Context for SSL connections.
Definition: Context.h:80