[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpclient-commons-dev
Subject:    [jira] [Comment Edited] (HTTPCORE-680) ClassicRequestBuilder does not accept a RequestConfig
From:       "Oleg Kalnichevski (Jira)" <jira () apache ! org>
Date:       2021-06-13 9:55:00
Message-ID: JIRA.13383460.1623430708000.593518.1623578100244 () Atlassian ! JIRA
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/HTTPCORE-680?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362487#comment-17362487 ] \


Oleg Kalnichevski edited comment on HTTPCORE-680 at 6/13/21, 9:54 AM:
----------------------------------------------------------------------

[~slisaasquatch]  HttpGet, HttpPost, etc are not deprecated. I imagine there are \
enough people who want to continue using them. Message builders just provide an \
alternative for those who prefer more fluent APIs.

I have looked into making message classes immutable by default during the 4.0 and 5.0 \
development phases and always found it making a number of things more difficult \
(message processing though a chain of message interceptors, for instance) and \
producing few benefits. Generally, HTTP messages should be digested into higher level \
objects (which may well be immutable) and immediately disposed of or forwarded \
further to the next hop (likely with hop specific modifications).

Oleg


was (Author: olegk):
[~slisaasquatch]  HttpGet, HttpPost, etc are not deprecated. I imagine there are \
enough people who want to continue using them. Message builders just provide an \
alternative for those who prefer more fluent APIs.

I have looked into making message classes immutable by default during the 4.0 and 5.0 \
development phases and always found it making a number of things more difficult \
(message processing though a chain of message interceptors, for instance) and \
producing few benefits. Generally, HTTP messages should be digested into a higher \
level object (which may well be immutable) and immediately disposed of.     

Oleg

> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic