[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LPeg captures into a table
- From: Daurnimator <quae@...>
- Date: Tue, 4 Aug 2015 11:43:54 +1000
On 4 August 2015 at 07:01, Sean Conner <sean@conman.org> wrote:
>But I used a custom function to store the data into a table instead
> of rawset(). There can be multiple headers with the same name
> (Received: comes to mind) and each one is important.
Yeah; HTTP/MIME style duplicate headers where order matters are tricky.
I cookied up a data stucture for just this purpose:
https://github.com/daurnimator/lua-http/blob/master/http/headers.lua