Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1900

Add httpresponse interceptor processing on 'CONNECT' request

    XMLWordPrintableJSON

Details

    Description

      Hello 

      I have a use case, where i need to get a cookie received on a 'CONNECT' request.

      In the method createTunnelToTarget of the class MainClientExec. Only interceptors on request can be used.

      I wish to be able to process interceptors on the response.

      Something like that : 

       

      package org.apache.http.impl.execchain;
      
      public class MainClientExec implements ClientExecChain {
      
      
          private boolean createTunnelToTarget(
      ...
              this.requestExecutor.preProcess(connect, this.proxyHttpProcessor, context);
      
              while (response == null) {
      ...
              }
      
              // The processing code of response interceptors 
              this.requestExecutor.postProcess(response, this.proxyHttpProcessor, context);
      ...
          }
      
      
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            gstephant Gael Stephant
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: