Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: http\rhttprequest.h
Link against: http.lib

Class RHTTPRequest

class RHTTPRequest

Support

Supported from 7.0

Description

A request message.

A request object stores a method (e.g. a HTTP GET), and a URI, as well as the message headers and body supplied by the RHTTPMessage base class.

To get a request object, first, get a transaction object using RHTTPSession::OpenTransactionL(), specifying the request method and URI, and then get the request object itself using RHTTPTransaction::Request().

This class's setter functions are not of use to clients, but can be used by advanced filters.

Derivation

RHTTPMessageA message: this is the base class for requests and responses
RHTTPRequestA request message

Defined in RHTTPRequest:
Method(), SetMethod(), SetURIL(), URI()

Inherited from RHTTPMessage:
Body(), GetHeaderCollection(), HasBody(), RemoveBody(), SetBody(), iImplementation


Member Functions


Method()

RStringF Method() const;

Description

Gets the method name.

Return value

RStringF

The method name


URI()

const TUriC8& URI() const;

Description

Gets the URI.

Return value

TUriC8&

The URI


SetMethod()

void SetMethod(RStringF aMethod);

Description

Sets the method name.

Parameters

RStringF aMethod

The method name


SetURIL()

void SetURIL(const TUriC8& aURI);

Description

Sets the URI.

Parameters

const TUriC8& aURI

The URI