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.17.3 (latest)
Published
Feb 25, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
15 hours ago

Tools for package owners.