hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1806) Add a route inteceptor
Date Mon, 06 Feb 2017 09:11:42 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15853724#comment-15853724
] 

ASF GitHub Bot commented on HTTPCLIENT-1806:
--------------------------------------------

GitHub user Coderec opened a pull request:

    https://github.com/apache/httpclient/pull/63

    HTTPCLIENT-1806 Add a route inteceptor

    https://issues.apache.org/jira/browse/HTTPCLIENT-1806

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/Coderec/httpclient cuibaosen/HTTPCLIENT-1806

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/httpclient/pull/63.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #63
    
----
commit c9551fc021247e6297dd0a62a1b08236634b3c87
Author: CuiBaosen <baosencumt@126.com>
Date:   2017-02-06T09:07:21Z

    HTTPCLIENT-1806 Add a route inteceptor

----


> Add a route inteceptor
> ----------------------
>
>                 Key: HTTPCLIENT-1806
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1806
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient (async), HttpClient (classic)
>            Reporter: Baosen Cui
>            Priority: Minor
>             Fix For: 5.0
>
>
> I had meet a problem that I need to log the time cost by  method “establishRoute”(
in httpclient ).
> Since there seems nothing to support, I wrote a interceptor into HttpCore coping the
structure of “HttpProcessor"
> Would this be accepted? Or there has already something alike?
> @ThreadSafe // provided injected dependencies are immutable
> public final class ImmutableRouteProcessor implements RouteProcessor {
> ...
> }
> public interface PostRouteInterceptor {
>   void postProcess(final HttpRequest request, final HttpContext context);
> }
> public interface PreRouteInterceptor {
>   void preProcess(final HttpRequest request, final HttpContext context);
> }
> public interface RouteProcessor extends PreRouteInterceptor, PostRouteInterceptor {
> }



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message