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

Daneel Yaitskov commented on HTTPCORE-412:
------------------------------------------

About 2. I thought about Supplier<Header[]> solution but it doesn't express 
contract between Trailer header and trailers.
Current solution generates Trailer automatically because keys are always known. 

For 2 there are options: 
(1) Leave Trailer construction for user and only check.
(2) Return Header[] with empty values if it's called before body is sent.
(3) Register another method in Entity for returning names of expected trailers.
 
All these options looks less appropriate than current one.
Which one would you like to use?


> Send HTTP trailers in request
> -----------------------------
>
>                 Key: HTTPCORE-412
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-412
>             Project: HttpComponents HttpCore
>          Issue Type: New Feature
>          Components: HttpCore, HttpCore NIO
>            Reporter: Daneel Yaitskov
>            Priority: Minor
>             Fix For: 5.0
>
>
> Currently HTTP client doesn't support sending trailers to a web server.
> The section https://tools.ietf.org/html/rfc7230#section-4.4 is need to be 
> implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to