Created by pach on 20/01/17.
evaluates address from the host port and scheme *
yields to true, if chunked encoding header is present *
From the stream of bytes this extracts Http Header and body part.
creates a function that lifts supplied socket to secure socket *
Reads from supplied socket with timeout until shallTimeout
yields to true.
Reads from supplied socket with timeout until shallTimeout
yields to true.
A socket to read from
A timeout
If true, timeout will be applied, if false timeout won't be applied.
Size of chunk to read up to
swaps header H
for new value.
swaps header H
for new value. If header exists, it is discarded. Appends header to the end*