You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/01/31 22:45:39 UTC

[jira] [Commented] (HTTPCORE-418) Add a HttpHost constructor for hostname and scheme

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

ASF GitHub Bot commented on HTTPCORE-418:
-----------------------------------------

Github user garydgregory commented on the pull request:

    https://github.com/apache/httpcore/pull/20#issuecomment-177623136
  
    Patch applied:
    
    Committed revision 1727859.
    
    Please verify and close.
    
    Thank you @HendricksonJS !



> Add a HttpHost 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
>            Assignee: Gary Gregory
>            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