transport

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractModelFromRequest

func ExtractModelFromRequest(req *http.Request) (string, error)

Types

type Transport

type Transport struct {
	Base http.RoundTripper
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(config model.Config) (*Transport, error)

NewTransport creates a new Transport with metrics tracking.

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
JackTT - Gopher 🇻🇳