MCPcopy Create free account
hub / github.com/libgit2/git2go / RegisterManagedHTTPTransport

Function RegisterManagedHTTPTransport

http.go:18–20  ·  view source on GitHub ↗

RegisterManagedHTTPTransport registers a Go-native implementation of an HTTP/S transport that doesn't rely on any system libraries (e.g. libopenssl/libmbedtls). If Shutdown or ReInit are called, make sure that the smart transports are freed before it.

(protocol string)

Source from the content-addressed store, hash-verified

16// If Shutdown or ReInit are called, make sure that the smart transports are
17// freed before it.
18func RegisterManagedHTTPTransport(protocol string) (*RegisteredSmartTransport, error) {
19 return NewRegisteredSmartTransport(protocol, true, httpSmartSubtransportFactory)
20}
21
22func registerManagedHTTP() error {
23 globalRegisteredSmartTransports.Lock()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…