Called to create a new connection to a given host.
The version field should be set to GIT_STREAM_VERSION.
Called to create a new connection on top of the given stream. If this is a TLS stream, then this function may be used to proxy a TLS stream over an HTTP CONNECT session. If this is unset, then HTTP CONNECT proxies will not be supported.