Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from RHTTPMessage:


Member functions


StatusCode()const

IMPORT_C TInt StatusCode() const;

Description

Returns the status code

Return value

TInt


StatusText()const

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()const

IMPORT_C TVersion Version() const;

Description

Returns the version of HTTP used by the server

Return value

TVersion


SetStatusCode(TInt)

IMPORT_C void SetStatusCode(TInt aStatus);

Description

Sets the status code.

Parameters

TInt aStatus


SetStatusText(RStringF)

IMPORT_C void SetStatusText(RStringF aStatusString);

Description

Sets the status string.

Parameters

RStringF aStatusString


SetVersion(TVersion)

IMPORT_C void SetVersion(TVersion aVersion);

Description

Sets the HTTP version.

Parameters

TVersion aVersion