headers: refactor code
request: use new headers to string conversion
response: use new headers parsing
response: fix chunked reading