equal
deleted
inserted
replaced
15 |
15 |
16 #include "chttpservice.h" |
16 #include "chttpservice.h" |
17 #include "httpclientutils.h" |
17 #include "httpclientutils.h" |
18 #include "chttpclientauthentication.h" |
18 #include "chttpclientauthentication.h" |
19 #include "mhttpserviceauthentication.h" |
19 #include "mhttpserviceauthentication.h" |
|
20 #include "chttpnetworkconnectioninfo.h" |
20 const TInt KMaxNoOfConnections = 6; |
21 const TInt KMaxNoOfConnections = 6; |
21 const TInt KMaxTransToPipeline = 5; |
22 const TInt KMaxTransToPipeline = 5; |
22 |
23 |
23 /** |
24 /** |
24 * The default 2-phase constructor to create a CHttpService instance |
25 * The default 2-phase constructor to create a CHttpService instance |
245 iHttpServiceStruct->iSessionHeaders = iHttpServiceStruct->iHttpSession.RequestSessionHeadersL(); |
246 iHttpServiceStruct->iSessionHeaders = iHttpServiceStruct->iHttpSession.RequestSessionHeadersL(); |
246 SetMaxConnections(KMaxNoOfConnections); |
247 SetMaxConnections(KMaxNoOfConnections); |
247 SetMaxTransactionsToPipeline(KMaxTransToPipeline); |
248 SetMaxTransactionsToPipeline(KMaxTransToPipeline); |
248 } |
249 } |
249 |
250 |
|
251 EXPORT_C CHttpNetworkConnection* CHttpService::HttpNetworkConnection() |
|
252 { |
|
253 CHttpNetworkConnection *httpNetworkConn = CHttpNetworkConnection::New(); |
|
254 httpNetworkConn->SetHttpService(this); |
|
255 return httpNetworkConn; |
|
256 } |