Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Internet Protocols Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWHttpClient

Module:  Internet Protocols Module   Package:  HTTP


RWHttpClientRWHandleBase

Local Index

Members

Header File

#include <rw/http/RWHttpClient.h>

Description

RWHttpClient, along with helper RWHttpMethod classes, enables detailed control over HTTP communications. The asynchronous nature of HTTP/1.1 enables you to submit multiple requests to the server before retrieving any of the replies. Replies are returned in the same order that they are submitted.

RWHttpClient objects are lightweight. They are implemented using the handle-body pattern. The RWHttpClient is a handle to an implementation that performs the protocol interaction.

Public Constructors

RWHttpClient();
RWHttpClient(const RWHttpClient& client);

Protected Constructor

RWHttpClient(RWHttpClientImp* imp);

Public Destructor

~RWHttpClient();

Public Member Operator

RWHttpClient&
operator=(const RWHttpClient& other);

Public Member Functions

void
connect(const RWSockAddrBase& address, 
        unsigned long maxwait);
RWHttpReply
getReply(unsigned long maxwait = 0);
RWHttpReply
getReply(RWTFunctor1<RWPortal> handler, 
         unsigned long maxwait = 0);
RWHttpReply
getReply(RWTFunctor2<RWPortal, RWHttpReply&> handler,
unsigned long maxwait = 0);
bool
isConnected() const;
bool
submit(RWHttpRequest request, 
       RWHttpPipeline pl = RW_HTTP_FORBID_PIPELINING,
       unsigned long maxwait = 0); 

Protected Function

RWHttpClientImp&
body() const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.