mongo-drivergo.mongodb.org/mongo-driver/internal/httputil Index | Files

package httputil

import "go.mongodb.org/mongo-driver/internal/httputil"

Index

Variables

var DefaultHTTPClient = &http.Client{
	Transport: http.DefaultTransport.(*http.Transport).Clone(),
}

DefaultHTTPClient is the default HTTP client used across the driver.

Functions

func CloseIdleHTTPConnections

func CloseIdleHTTPConnections(client *http.Client)

CloseIdleHTTPConnections closes any connections which were previously connected from previous requests but are now sitting idle in a "keep-alive" state. It does not interrupt any connections currently in use.

Borrowed from the Go standard library.

Source Files

httputil.go

Version
v1.16.0-prerelease
Published
Apr 16, 2024
Platform
js/wasm
Imports
1 packages
Last checked
34 seconds ago

Tools for package owners.