You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Gael Stephant (JIRA)" <ji...@apache.org> on 2018/01/25 17:19:00 UTC

[jira] [Updated] (HTTPCLIENT-1900) Add httpresponse interceptor processing on 'CONNECT' request

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gael Stephant updated HTTPCLIENT-1900:
--------------------------------------
    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 : 

 
{code:java}

public class OverrideApacheMainClientExec 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);
...
    }


{code}
 

  was:
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 : 

 
{code:java}
    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);
...
    }
{code}
 


> Add httpresponse interceptor processing on 'CONNECT' request 
> -------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1900
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1900
>             Project: HttpComponents HttpClient
>          Issue Type: Wish
>            Reporter: Gael Stephant
>            Priority: Minor
>
> 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 : 
>  
> {code:java}
> public class OverrideApacheMainClientExec 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);
> ...
>     }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org