decoder

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder func(io.Reader) io.Reader

type RoundTripper

type RoundTripper struct {
	http.RoundTripper
	Decoders map[string]Decoder
}

func GetOrWrap

func GetOrWrap(tr http.RoundTripper) (*RoundTripper, bool)

func (*RoundTripper) RoundTrip

func (rt *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

func (*RoundTripper) Unwrap

func (rt *RoundTripper) Unwrap() http.RoundTripper

Jump to

Keyboard shortcuts

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