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

Sebb commented on HTTPCORE-412:
-------------------------------

bq. I cannot return empty array

If a method can return null, it can just as easily return new Header[0].
And since empty arrays are immutable, the code can re-use the same constant 
empty array:
{code}
private static final EMPTY_HDR = new Header[0]; // immutable empty array
...
return EMPTY_HDR;
{code}

> 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