W3C home > Mailing lists > Public > ietf-http-wg@w3.org > January to March 2014

Re: #551: recipient handling of trailer fields

From: Roy T. Fielding <fielding@gbiv.com>
Date: Sat, 1 Feb 2014 02:03:50 -0800
Cc: HTTP Working Group <ietf-http-wg@w3.org>, Richard Barnes <rlb@ipv.sx>
Message-Id: <B6A7AEAA-CAF5-42CF-A968-E29D20064CE7@gbiv.com>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
On Jan 30, 2014, at 6:44 PM, Bjoern Hoehrmann wrote:

> * Roy T. Fielding wrote:
>> and in the pseudo-code of 4.1.3 (Decoding Chunked):
>> 
>> OLD:
>>    read header-field
>>    while (header-field not empty) {
>>       append header-field to existing header fields
>>       read header-field
>>    }
>> 
>> NEW:
>>    read trailer field
>>    while (trailer field is not empty) {
>>       if trailer field is allowed to be sent in a trailer,
>>           append trailer field to existing header fields
>>       read trailer-field
>>    }
> 
> I think the combination of comma and indentation is difficult to under-
> stand. It would be better to be more explicit,
> 
>     read trailer field
>     while (trailer field is not empty) {
>        if (trailer field is allowed to be sent in a trailer) {
>            append trailer field to existing header fields
>        }
>        read trailer-field
>     }
> 
> for instance.

Fixed.  Cheers,

....Roy
Received on Saturday, 1 February 2014 10:04:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:24 UTC