erlhttp icon indicating copy to clipboard operation
erlhttp copied to clipboard

add a way to pass headers one by one

Open benoitc opened this issue 12 years ago • 2 comments

It would be interesting to have a way to get headers line by line, so an application can eventually have use for it like transforming the key to uppercase for example.

benoitc avatar Jul 11 '13 07:07 benoitc

In {headers, Result, Parser} the Result value can be transformed by a map operation.

Or do you mean getting the header tuples out and avoid building the list ?

mme avatar Jul 19 '13 20:07 mme

I meant streaming the header fetch yes, so you can get the header one by one and optionnaly stop to parse the request. It can be useful when you are for example dispatching a request and only waiting on some headers. But that's a luxury :)

benoitc avatar Aug 24 '13 10:08 benoitc