CHttpService Class Reference
class CHttpService : public CBase
|
Nested Classes and Structures
Constructor & Destructor Documentation
CHttpService()
CHttpService
|
(
|
)
|
[private]
|
~CHttpService()
IMPORT_C
|
~CHttpService
|
(
|
)
|
|
Member Functions Documentation
AddCustomRequestHeader(const TDesC8 &, const TDesC8 &)
IMPORT_C
TInt
|
AddCustomRequestHeader
|
(
|
const
TDesC8
&
|
aHeaderName,
|
|
const
TDesC8
&
|
aHeaderValue
|
|
)
|
|
This method facilitates to set the custom
HTTP
header once in the
CHttpService
instance that is applicable for all
HTTP
client transactions. [For ex; User-Agent header]
Parameters
const
TDesC8
& aHeaderName
|
- Custom header name
|
const
TDesC8
& aHeaderValue
|
- Value for the header
|
AddRequestHeader(TInt, const THttpHeaderValueVariant &)
This method facilitates to set the header once in the
CHttpService
instance that is applicable for all
HTTP
client transactions. [For ex; User-Agent header]
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
MaxConnections()
IMPORT_C
TInt
|
MaxConnections
|
(
|
)
|
const
|
Returns the maximum no. of TCP connections that is set.
MaxTransactionsToPipeline()
IMPORT_C
TInt
|
MaxTransactionsToPipeline
|
(
|
)
|
const
|
NewL()
The default 2-phase constructor to create a
CHttpService
instance
ProxyAddress()
IMPORT_C const
TDesC8
&
|
ProxyAddress
|
(
|
)
|
const
|
Returns the proxy address that is set
SetAuthentication(MHTTPServiceAuthentication *)
SetMaxConnections(TInt)
IMPORT_C void
|
SetMaxConnections
|
(
|
TInt
|
aValue
|
)
|
|
Set the maxuimum number of TCP connections[socket]
CHttpService
instance that can activated at any time. The default no. of connections that the
CHttpService
instance uses is 6.
Parameters
TInt
aValue
|
aValue No. of connections
|
SetMaxTransactionsToPipeline(TInt)
IMPORT_C void
|
SetMaxTransactionsToPipeline
|
(
|
TInt
|
aValue
|
)
|
|
SetProxy(const TDesC8 &)
IMPORT_C
TInt
|
SetProxy
|
(
|
const
TDesC8
&
|
aProxyAddress
|
)
|
|
Set the proxy that applies to all
HTTP
client transactions that "this"
CHttpService
instance creates
Parameters
const
TDesC8
& aProxyAddress
|
Proxy address. [for ex; http://myproxy.org:8081]
|
String(TInt, TPtrC8 &)
Retrieves the equivalent string for a give string ID from the
HTTP
string pool
Member Data Documentation
CHttpServiceStruct * iHttpServiceStruct
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.