[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to