equal
deleted
inserted
replaced
18 |
18 |
19 #include <e32std.h> |
19 #include <e32std.h> |
20 #include <http.h> |
20 #include <http.h> |
21 #include <in_sock.h> |
21 #include <in_sock.h> |
22 #include "httpheaderiter.h" |
22 #include "httpheaderiter.h" |
23 |
23 class CHttpNetworkConnection; |
24 /** |
24 /** |
25 * CHttpService represent a handle to the HTTP service instance for a set of client |
25 * CHttpService represent a handle to the HTTP service instance for a set of client |
26 * HTTP transactions[a request and its equivalent response]. The application can |
26 * HTTP transactions[a request and its equivalent response]. The application can |
27 * specify connection preferences[proxy, max. no of connections allowed in a single |
27 * specify connection preferences[proxy, max. no of connections allowed in a single |
28 * HTTP service instance], pipelining, setting request headers that applies to all |
28 * HTTP service instance], pipelining, setting request headers that applies to all |
34 class CHttpClientAuthentication; |
34 class CHttpClientAuthentication; |
35 class MHTTPServiceAuthentication; |
35 class MHTTPServiceAuthentication; |
36 class CHttpService : public CBase |
36 class CHttpService : public CBase |
37 { |
37 { |
38 friend class CHttpClientTransactionImpl; |
38 friend class CHttpClientTransactionImpl; |
|
39 friend class CHttpNetworkConnection; |
39 public: |
40 public: |
40 |
41 |
41 IMPORT_C static CHttpService* NewL(); |
42 IMPORT_C static CHttpService* NewL(); |
42 IMPORT_C ~CHttpService(); |
43 IMPORT_C ~CHttpService(); |
43 |
44 |
54 |
55 |
55 IMPORT_C TInt AddRequestHeader(TInt aHeaderId, const THttpHeaderValueVariant& aHeaderValue); |
56 IMPORT_C TInt AddRequestHeader(TInt aHeaderId, const THttpHeaderValueVariant& aHeaderValue); |
56 IMPORT_C TInt AddCustomRequestHeader(const TDesC8& aHeaderName, const TDesC8& aHeaderValue); |
57 IMPORT_C TInt AddCustomRequestHeader(const TDesC8& aHeaderName, const TDesC8& aHeaderValue); |
57 |
58 |
58 IMPORT_C TInt SetAuthentication(MHTTPServiceAuthentication* aCallback); |
59 IMPORT_C TInt SetAuthentication(MHTTPServiceAuthentication* aCallback); |
|
60 |
|
61 IMPORT_C CHttpNetworkConnection* HttpNetworkConnection(); |
59 |
62 |
60 private: |
63 private: |
61 CHttpService(); |
64 CHttpService(); |
62 void ConstructL(); |
65 void ConstructL(); |
63 |
66 |