hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCORE-418) HttpHost should have a constructor for hostname and scheme
Date Wed, 27 Jan 2016 16:18:40 GMT

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

Oleg Kalnichevski updated HTTPCORE-418:
---------------------------------------
    Fix Version/s: 5.0

We happily accept PRs at GitHub

> HttpHost should have a constructor for hostname and scheme
> ----------------------------------------------------------
>
>                 Key: HTTPCORE-418
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-418
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>            Reporter: Joshua Hendrickson
>            Priority: Minor
>             Fix For: 5.0
>
>
> org.apache.http.HttpHost provides a (String, int, String) constructor to let you specify
an https configuration. However, in order to not have it include ":443" at the end of its
string representation, you need to know to pass -1 for the port parameter. For those not familiar
with the class, having a (String, String) constructor like the one below would be easier to
grok:
> new HttpHost("www.example.com", "https");
> compared with what you have to do today:
> new HttpHost("www.example.com", -1, "https");



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message