Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E88518E3A for ; Mon, 9 Nov 2015 10:56:11 +0000 (UTC) Received: (qmail 96209 invoked by uid 500); 9 Nov 2015 10:56:11 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 96126 invoked by uid 500); 9 Nov 2015 10:56:11 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 96062 invoked by uid 99); 9 Nov 2015 10:56:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2015 10:56:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 185942C1F61 for ; Mon, 9 Nov 2015 10:56:11 +0000 (UTC) Date: Mon, 9 Nov 2015 10:56:11 +0000 (UTC) From: "Sebb (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCORE-412) Send HTTP trailers in request MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org