transport

package
v0.0.0-...-8edb766 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransportWithFallbackHeaders

func NewTransportWithFallbackHeaders(t http.RoundTripper, headers http.Header) http.RoundTripper

NewTransportWithFallbackHeaders creates a new http.RoundTripper that wraps the given http.RoundTripper and adds the given headers to the request if they are not already set.

This is useful if you want to ensure a signed header like `Content-Type` is set on all requests, including GETs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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