You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Siqi Li (Jira)" <ji...@apache.org> on 2021/06/12 16:28:00 UTC
[jira] [Commented] (HTTPCORE-680) ClassicRequestBuilder does not
accept a RequestConfig
[ https://issues.apache.org/jira/browse/HTTPCORE-680?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362353#comment-17362353 ]
Siqi Li commented on HTTPCORE-680:
----------------------------------
Thanks! That makes sense. I do have another quick question though. Will the old http request classes like HttpGet, HttpPost, etc. be considered deprecated? And are there plans of making the request classes immutable since the builders exist now?
> ClassicRequestBuilder does not accept a RequestConfig
> -----------------------------------------------------
>
> Key: HTTPCORE-680
> URL: https://issues.apache.org/jira/browse/HTTPCORE-680
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Components: HttpCore
> Affects Versions: 5.1
> Reporter: Siqi Li
> Priority: Minor
>
> Since 5.1 the new request builder classes seem to be the recommended way of creating http requests, if I'm not mistaken. The original SimpleHttpRequests class is now straight up deprecated. However, unlike SimpleRequestBuilder, the new ClassicRequestBuilder does not accept a RequestConfig. To make matters worse, the request class it produces is BasicClassicHttpRequest, which does not accept a RequestConfig either. This basically renders the ClassicRequestBuilder class useless in a lot of situations.
--
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