Registry / http-client / motemen-go-loghttp

motemen-go-loghttp

JSON →
library0.0.0-20231107055348-29ae44b293f4gogounverified

Provides automatic logging functionalities for http.Client, enabling request/response logging.

go get github.com/motemen/go-loghttp
INSTALL
IMPORT
SIG · MOTEMEN-GO-LOGHTTP
M
motemen-go-loghttp
http-clientgov0.0.0-20231107055348-29ae44b293f4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

loghttp
github.com/motemen/go-loghttp

Creates an HTTP client with logging transport.

package main import ( "net/http" "github.com/motemen/go-loghttp" ) func main() { client := &http.Client{ Transport: &loghttp.Transport{}, } resp, _ := client.Get("https://example.com") defer resp.Body.Close() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20231107055348-29ae44b293f4latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Amazon
1
Resources
motemen-go-loghttp — go get motemen-go-loghttp · libregistry