- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for NewHTTPFetcher (0.15 sec)
-
pkg/wasm/httpfetcher_test.go
wantWasmModule := "wasm\n" ts = httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { c.handler(w, r, gotNumRequest) gotNumRequest++ })) defer ts.Close() fetcher := NewHTTPFetcher(DefaultHTTPRequestTimeout, DefaultHTTPRequestMaxRetries) fetcher.initialBackoff = time.Microsecond ctx, cancel := context.WithTimeout(context.Background(), c.timeout) defer cancel()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 24 15:56:41 UTC 2023 - 7.5K bytes - Viewed (0) -
pkg/wasm/httpfetcher.go
insecureClient *http.Client initialBackoff time.Duration requestMaxRetry int } // NewHTTPFetcher create a new HTTP remote wasm module fetcher. // requestTimeout is a timeout for each HTTP/HTTPS request. // requestMaxRetry is # of maximum retries of HTTP/HTTPS requests. func NewHTTPFetcher(requestTimeout time.Duration, requestMaxRetry int) *HTTPFetcher { if requestTimeout == 0 { requestTimeout = 5 * time.Second
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Nov 14 20:23:34 UTC 2022 - 5.5K bytes - Viewed (0)