You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Nathan Reynolds (Jira)" <ji...@apache.org> on 2021/09/09 16:29:00 UTC

[jira] [Created] (HTTPCLIENT-2175) URIBuilder.addPathSegment()

Nathan Reynolds created HTTPCLIENT-2175:
-------------------------------------------

             Summary: URIBuilder.addPathSegment()
                 Key: HTTPCLIENT-2175
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2175
             Project: HttpComponents HttpClient
          Issue Type: Improvement
            Reporter: Nathan Reynolds


Please add another method to URIBuilder called addPathSegment() with the following signature and implementation.

{{public void addPathSegment(String segment) {   this.pathSegments.add(segment);}}

{{}}}

Of course, this means making pathSegments mutable within the class.

This new method will make appending new segments very easy.  It will also improve the performance since fewer copies of ArrayList will be needed by the caller.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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