Symbian
 Developer Library

DEVELOPER LIBRARY

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



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

Class RHTTPResponse

class RHTTPResponse

Support

Supported from 7.0

Description

A response message.

A response object stores a status code, status text, and server version information, as well as the message headers and body supplied by the RHTTPMessage base class.

A response object can be obtained for a transaction using RHTTPTransaction::Response().

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
RHTTPResponseA response message

Defined in RHTTPResponse:
SetStatusCode(), SetStatusText(), SetVersion(), StatusCode(), StatusText(), Version()

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


Member Functions


StatusCode()

TInt StatusCode() const;

Description

Gets the status code.

Return value

TInt

The status code


StatusText()

RStringF StatusText() const;

Description

Gets the status text.

The status text is the text after the number on the first line of the response.

Return value

RStringF

The status text


Version()

TVersion Version() const;

Description

Gets the version of the protocol used by the server.

Return value

TVersion

Version of the protocol


SetStatusCode()

void SetStatusCode(TInt aStatus);

Description

Sets the status code.

Parameters

TInt aStatus

The status code


SetStatusText()

void SetStatusText(RStringF aStatusString);

Description

Sets the status text.

Parameters

RStringF aStatusString

The status text


SetVersion()

void SetVersion(TVersion aVersion);

Description

Sets the protocol version.

Parameters

TVersion aVersion

The protocol version