140 iSession->FilterCollection().AddFilterL(*this, // The filter to add |
140 iSession->FilterCollection().AddFilterL(*this, // The filter to add |
141 THTTPEvent::ESubmit, // The event that triggers this filter |
141 THTTPEvent::ESubmit, // The event that triggers this filter |
142 RStringF(), // The header whose presence triggers this filter, or KNullDesC to trigger on any header |
142 RStringF(), // The header whose presence triggers this filter, or KNullDesC to trigger on any header |
143 KAnyStatusCode, // The status code that triggers this filter, or KAnyStatusCode to trigger on any status code |
143 KAnyStatusCode, // The status code that triggers this filter, or KAnyStatusCode to trigger on any status code |
144 ECache - KProxyOrderOffset,// The position of the filter in the queue |
144 ECache - KProxyOrderOffset,// The position of the filter in the queue |
145 iStringPool.StringF(HttpFilterCommonStringsExt::EProxyFilter,RHTTPSession::GetTable())); //The name of the filter to add |
145 iStringPool.StringF(HttpFilterCommonStringsExt::EProxyFilter,HttpFilterCommonStringsExt::GetTable())); //The name of the filter to add |
146 |
146 |
147 // register for notification of KErrNotReady error codes |
147 // register for notification of KErrNotReady error codes |
148 // this allows us to re-start the connection if it fails |
148 // this allows us to re-start the connection if it fails |
149 iSession->FilterCollection().AddFilterL(*this, KErrNotReady, MHTTPFilter::ETidyUp -1, iStringPool.StringF(HttpFilterCommonStringsExt::EProxyFilter,RHTTPSession::GetTable())); |
149 iSession->FilterCollection().AddFilterL(*this, KErrNotReady, MHTTPFilter::ETidyUp -1, iStringPool.StringF(HttpFilterCommonStringsExt::EProxyFilter,HttpFilterCommonStringsExt::GetTable())); |
150 } |
150 } |
151 |
151 |
152 //--------------------------------------------------------------------------------------------- |
152 //--------------------------------------------------------------------------------------------- |
153 // Destructor |
153 // Destructor |
154 //---------------------------------------------------------------------------------------------- |
154 //---------------------------------------------------------------------------------------------- |