hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1852) Add APIs URIBuilder.localhost() and setHost(InetAddress)
Date Sat, 20 May 2017 02:31:04 GMT

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

Gary Gregory commented on HTTPCLIENT-1852:
------------------------------------------

Done for 4.6.

For 5.0, I will also add an API for the Java 7 only {{InetAddress#getLoopbackAddress()}}:

{code:java}
    /**
     * Creates a new builder for the host {@link InetAddress#getLoopbackAddress()}.
     *
     * @since 5.0
     */
    public static URIBuilder loopbackAddress() throws UnknownHostException {
        return new URIBuilder().setHost(InetAddress.getLoopbackAddress());
    }
{code}

> Add APIs URIBuilder.localhost() and setHost(InetAddress)
> --------------------------------------------------------
>
>                 Key: HTTPCLIENT-1852
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1852
>             Project: HttpComponents HttpClient
>          Issue Type: New Feature
>          Components: HttpClient (classic)
>            Reporter: Gary Gregory
>            Assignee: Gary Gregory
>             Fix For: 4.6 Alpha1
>
>
> Add APIs URIBuilder.localhost() and setHost(InetAddress)



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