Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: rhttpresponse.h
Link against: http.lib

Class RHTTPResponse

class RHTTPResponse : public RHTTPMessage;

Description

An HTTP Response. This class extends the abstract HTTP Message to add an HTTP version, a status code and status text.

Derivation

Members

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

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


Member functions


StatusCode()

IMPORT_C TInt StatusCode() const;

Description

Returns the status code

Return value

TInt


StatusText()

IMPORT_C RStringF StatusText() const;

Description

Returns the status text, that is the text after the number on the first line of the response.

Return value

RStringF


Version()

IMPORT_C TVersion Version() const;

Description

Returns the version of HTTP used by the server

Return value

TVersion


SetStatusCode()

IMPORT_C void SetStatusCode(TInt aStatus);

Description

Sets the status code.

Parameters

TInt aStatus


SetStatusText()

IMPORT_C void SetStatusText(RStringF aStatusString);

Description

Sets the status string.

Parameters

RStringF aStatusString


SetVersion()

IMPORT_C void SetVersion(TVersion aVersion);

Description

Sets the HTTP version.

Parameters

TVersion aVersion