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)
| 16 | // If Shutdown or ReInit are called, make sure that the smart transports are |
| 17 | // freed before it. |
| 18 | func RegisterManagedHTTPTransport(protocol string) (*RegisteredSmartTransport, error) { |
| 19 | return NewRegisteredSmartTransport(protocol, true, httpSmartSubtransportFactory) |
| 20 | } |
| 21 | |
| 22 | func registerManagedHTTP() error { |
| 23 | globalRegisteredSmartTransports.Lock() |
nothing calls this directly
no test coverage detected
searching dependent graphs…