#include <cel_http.h>

Public Member Functions | |
| virtual void | addRequestHeader (const String &inHeader)=0 |
| virtual AutoPtr < HttpResponseStream > | post (const void *inAdditionalData=NULL, size_t inSize=0)=0 |
| virtual String | getHostName () const =0 |
| virtual u16 | getPort () const =0 |
| virtual bool | isOnSSL () const =0 |
| virtual String | getUrl () const =0 |
Definition at line 352 of file cel_http.h.
| virtual void Celartem::HttpRequestStream::addRequestHeader | ( | const String & | inHeader | ) | [pure virtual] |
This method is to add HTTP 1.1 request header.
| inHeader | HTTP header in the form of "HeaderName : Value". |
| virtual AutoPtr<HttpResponseStream> Celartem::HttpRequestStream::post | ( | const void * | inAdditionalData = NULL, |
|
| size_t | inSize = 0 | |||
| ) | [pure virtual] |
This method posts the request to the server and returns HttpResponseStream instance.
Please note that the HttpResponseStream internally locks the HttpRequestStream instance and the HttpRequestStream instance lives until the corresponding HttpResponseStream is released.
| inAdditionalData | You can specify an additional data to send to server. The data specified by inAdditionalData is concatenated just after the data that were written by writeBytes method. | |
| inSize | Size of the data specified by inAdditionalData, in bytes. |
| virtual String Celartem::HttpRequestStream::getHostName | ( | ) | const [pure virtual] |
This method returns the host name of the connected peer.
| virtual u16 Celartem::HttpRequestStream::getPort | ( | ) | const [pure virtual] |
This method returns the port of the connected peer.
| virtual bool Celartem::HttpRequestStream::isOnSSL | ( | ) | const [pure virtual] |
This method returns whether this request is on the SSL connection or not.
true if on the SSL connection, otherwise false. | virtual String Celartem::HttpRequestStream::getUrl | ( | ) | const [pure virtual] |
This method returns the URL of the resource which is currently requested by this instance.