You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (Jira)" <ji...@apache.org> on 2021/09/11 15:22:00 UTC
[jira] [Commented] (HTTPCLIENT-2175) URIBuilder.addPathSegment()
[ https://issues.apache.org/jira/browse/HTTPCLIENT-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17413545#comment-17413545 ]
Oleg Kalnichevski commented on HTTPCLIENT-2175:
-----------------------------------------------
[~nathanila] There are already methods `#appendPathSegments` in the 5.x line.
Oleg
> URIBuilder.addPathSegment()
> ---------------------------
>
> Key: HTTPCLIENT-2175
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2175
> Project: HttpComponents HttpClient
> Issue Type: Improvement
> Reporter: Nathan Reynolds
> Priority: Trivial
>
> 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