You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(oh: and it should have both multipart encode and decode)
thibaultcha
@Daurn: I haven't read it, but I do agree that this should be totally feasable in an unopinonated streaming fashion
daurn
thinking about decoding api: multipart/formdata can be nested
daurn
I think there would be SAX-style 'pull' with events like "start of part" "part body chunk" "part body chunk" "end of part"
thibaultcha
only I wonder, such an API would not be able to append or remove fields on the fly... Or would it?
thibaultcha
Actually, it could, if the API handles it pre- encoding/decoding...
daurn
@thibaultcha: there should be a streaming decoder and a streaming encoder. if you wanted to append/edit/remove then you'd have something in the middle there as a filter
thibaultcha
yeah
thibaultcha
that'd be nice
daurn
@thibaultcha: how would you feel about doing this under the 'lua-multipart' project? as a new major version
daurn
only thing is that I'd like to have the lua-http 'headers' object available
thibaultcha
Any reason you see for wanting to stick under the lua-multipart project though? Just curious