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

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

I cannot return empty array from TrailerSupplier because I need names of 
headers before
request is sent, but trailer values are not known until body is sent.

If TrailerSupplier returning empty array then I need another approach for 
building Trailer header.
 
(1) Leave Trailer construction for user and only check.
(2) Return Map<String, Supplier<List<String>>> instead Header[]
(3) Register another method in Entity for returning names of expected trailers.



> 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