erlhttp
erlhttp copied to clipboard
add a way to pass headers one by one
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.
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 ?
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 :)