Re: JSON headers

On 2016-07-11 13:20, Poul-Henning Kamp wrote:
> --------
> In message <38b3e7bb-3202-f489-ff15-d4d545e13ca0@gmx.de>, Julian Reschke writes
> :
>
>>> In particular, I find it very unintuitive that we would ever constrain
>>> the JSON formats utility, in order to retain a misfeature like
>>> repeated headers.
>>
>> How exactly is it "constrained"?
>
> As I described previously:  It forces all headers to use a list-form,
> even when a key-value form is what they need.

You can have a *list* of objects, and these objects can contain 
key-value form.

See example in 
<https://greenbytes.de/tech/webdav/draft-ietf-httpbis-jfv-01.html#example.content-disposition>.

Best regards, Julian

Received on Monday, 11 July 2016 11:44:25 UTC