httplog

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextRequestKey = contextRequestKey{"httplog.zendesk.api"}
View Source
var DefaultTransport = &Transport{
	Transport: http.DefaultTransport,
}

Functions

func DefaultLogRequest

func DefaultLogRequest(req *http.Request)

func DefaultLogResponse

func DefaultLogResponse(res *http.Response)

Types

type Transport

type Transport struct {
	Transport   http.RoundTripper
	LogRequest  func(req *http.Request)
	LogResponse func(resp *http.Response)
}

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL