#include <cel_http.h>

Public Member Functions | |
| virtual AutoPtr < HttpRequestStream > | createRequestStream (const String &inMethod, const String &inRequest, bool inReqIsEscaped=false, CredentialProvider *inCredProv=NULL)=0 |
| virtual AutoPtr< HttpManager > | getHttpManager ()=0 |
| virtual String | getHostName () const =0 |
| virtual u16 | getPort () const =0 |
| virtual bool | isOnSSL () const =0 |
Definition at line 269 of file cel_http.h.
| virtual AutoPtr<HttpRequestStream> Celartem::HttpConnection::createRequestStream | ( | const String & | inMethod, | |
| const String & | inRequest, | |||
| bool | inReqIsEscaped = false, |
|||
| CredentialProvider * | inCredProv = NULL | |||
| ) | [pure virtual] |
This method create a new HTTP request.
With a HttpConnection, only one instance of the HttpRequestStream can exist at a time; if you try to create several HttpRequestStream instances, they are serialized.
| inMethod | It specifies the HTTP method. It should be one of the following methods:
| |
| inRequest | URL without scheme, hostname, port specification, such as "/foo/bar.cgi?a=123&b=567". If you only have URL and want to extract the request part from it, use Url::separateUrl . | |
| inReqIsEscaped | Specifies whether the request is URL escaped or not. The default is false. | |
| inCredProv | Specifies a CredentialProvider instance which provides the information for authenticaion. |
| virtual AutoPtr<HttpManager> Celartem::HttpConnection::getHttpManager | ( | ) | [pure virtual] |
This method is to get the HttpManager instance that manages this HttpConnection instance.
| virtual String Celartem::HttpConnection::getHostName | ( | ) | const [pure virtual] |
This method returns the host name of the connected peer.
| virtual u16 Celartem::HttpConnection::getPort | ( | ) | const [pure virtual] |
This method returns the port of the connected peer.
| virtual bool Celartem::HttpConnection::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.