Pull connection negotiation out in to function so defer call can close connection during lifecycle of stream as needed.
Pull connection negotiation out in to function so defer call can close connection during lifecycle of stream as needed.

Diggs/go-http-stream-reader