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

RWHttpRequest

Module:  Internet Protocols Module   Package:  HTTP


Does not inherit

Local Index

Members

Header File

#include <rw/http/RWHttpRequest.h>

Description

Class RWHttpRequest defines the HTTP request methods in the HTTP specifications. For HTTP/1.1, the commands GET, POST, HEAD, PUT, DELETE, TRACE, and OPTIONS are supported. Class RWHttpRequest enables you to construct a full request and add header information to a request.

Public Constructors

RWHttpRequest();
RWHttpRequest(const RWCString& method,
   const RWCString& path, 
   const RWHttpHeaderList& headers = RWHttpHeaderList(),
   const RWHttpRequestBody& body = RWHttpRequestStringBody());

NOTE -- Some methods require a body. If one of those methods is invoked without a body, no error is reported by the HTTP package, but an error should be returned from the server.
RWHttpRequest(const RWHttpRequest& request);

Public Member Operator

RWHttpRequest&
operator=(const RWHttpRequest& request);

Public Member Functions

RWHttpRequestBody&
getBody(void) const;
RWHttpHeaderList 
getHeaders() const;
int
getMajorVersion(void) const;
RWCString 
getMethod(void) const;
int
getMinorVersion(void) const;
RWCString 
getPath() const;
bool 
isValid() const;
RWCString 
requestLine(void) const;
void
setBody(const RWHttpRequestBody& body);
void
setHeaders(const RWHttpHeaderList& headerList); 
void
setMethod(const RWCString& method);
void
setPath(const RWCString& path);
void
setVersion(int majorVersion, int minorVersion);


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.