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