Download core/http.go from mikmc/StremThru: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/mikmc/StremThru/resolve/main/core/http.go
- Command line
-
hf download hf://spaces/mikmc/StremThru/core/http.go
-
curl -L -o http.go https://huggingface.co/spaces/mikmc/StremThru/resolve/main/core/http.go
316 Bytes
| package core | |
| import "net/http" | |
| var DefaultHTTPTransport = func() *http.Transport { | |
| transport := http.DefaultTransport.(*http.Transport).Clone() | |
| transport.DisableKeepAlives = true | |
| return transport | |
| }() | |
| var DefaultHTTPClient = func() *http.Client { | |
| return &http.Client{ | |
| Transport: DefaultHTTPTransport, | |
| } | |
| }() | |