Public Member Functions

Celartem::HttpResponseStream Class Reference

#include <cel_http.h>

Inheritance diagram for Celartem::HttpResponseStream:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual unsigned int getStatusCode () const =0
virtual size_t getHeaderCount () const =0
virtual void getNthHeader (HttpHeaderEntry &outHeader, size_t inIndex) const =0
virtual String getHeader (const String &inHeaderName) const =0
virtual uint64_t getContentLength () const =0

Detailed Description

HttpResponseStream represents the HTTP response from the server. Any instances of this class is created by HttpRequestStream::post method.

See also:
HttpRequestStream, HttpConnection, HttpManager

Member Function Documentation

virtual uint64_t Celartem::HttpResponseStream::getContentLength (  )  const [pure virtual]

This method returns "Content-Length" of the receiving content.

Returns:
The size of the content received. If the "Content-Length" header is not available, this function returns -1.
virtual String Celartem::HttpResponseStream::getHeader ( const String inHeaderName  )  const [pure virtual]

This method returns a header entry by name.

Parameters:
inHeaderName A header name to specify the header entry.
Returns:
The Header Content.
virtual size_t Celartem::HttpResponseStream::getHeaderCount (  )  const [pure virtual]

This method is to get number of header entries.

Returns:
The number of headers.
virtual void Celartem::HttpResponseStream::getNthHeader ( HttpHeaderEntry outHeader,
size_t  inIndex 
) const [pure virtual]

This method returns a header entry by index.

Parameters:
outHeader On return, this instance stores the header entry.
inIndex An index to specify the header entry.
virtual unsigned int Celartem::HttpResponseStream::getStatusCode (  )  const [pure virtual]

This method is to get HTTP 1.1 status code.

Returns:
HTTP 1.1 status code; 200 stands for success. For more information, see HTTP 1.1 specification.

The documentation for this class was generated from the following file:

This document is made with doxygen 1.7.1 at Sun Sep 5 2010 13:03:38.
Caminova Logo