Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWIHttpClient



Module

Networking Tools: Thread-hot Internet Classes (int library)

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Member Functions

Synopsis

#include <rw/toolpro/http.h>
RWIHttpClient client(RWIHttpVersion_0_9());

Required Libraries

thr, net, int, tls (and possibly std)

Description

RWIHttpClient provides low-level access to the HTTP client-side protocol. The RWIHttpClient class maintains a finite state machine to enforce correct HTTP protocol action ordering. When methods are invoked in an inappropriate order, an RWIProtocolClientError exception is thrown.

The client, along with helper RWIHttpMethod and RWIHttpVersion classes, provides fine-grained control over HTTP communications. The execute method returns an RWIOUResult that can be redeemed for an RWIHttpReply. RWIHttpReply encapsulates the standard HTTP protocol reply messages. A reply can be queried for the result of the request, including indexing into any returned header information.

RWIHttpClient objects are lightweight. They are implemented using the interface-implementation pattern. The RWIHttpClient itself is really a handle to an implementation that performs the protocol interaction.

Example

Public Constructors

RWIHttpClient();
RWIHttpClient(const RWIHttpVersion& ver);

Public Destructor

~RWIHttpClient();

Copy Constructors

RWIHttpClient(const RWIHttpClient& client);

Assignment Operators

RWIHttpClient&
operator=(const RWIHttpClient& other);

Public Member Functions

RWIOUResult<RWBoolean>
connect(const RWCString& host, int port=80);
RWIOUResult<RWIHttpReply>
execute(RWIHttpMethod& method); 


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.