#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 |
Public Member Functions inherited from Celartem::Referable | |
Referable () | |
void | addRef () const |
void | releaseRef () const |
size_t | getReferenceCount () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Celartem::Referable | |
static void | dumpDbgAllRefCount () |
HttpConnection takes care of information about a connection and controls the actual connection between the local host and the remote host. The instances of this class is created by HttpManager::createConnection .
|
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. |
|
pure virtual |
This method returns the host name of the connected peer.
|
pure virtual |
This method is to get the HttpManager instance that manages this HttpConnection instance.
|
pure virtual |
This method returns the port of the connected peer.
|
pure virtual |
This method returns whether this request is on the SSL connection or not.
true
if on the SSL connection, otherwise false
.