thanos

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalHeadersRoundTripper

type AdditionalHeadersRoundTripper struct {
	http.RoundTripper
	Headers map[string][]string
}

AdditionalHeadersRoundTripper adds a new RoundTripper to the chain that sets additional static headers.

func (*AdditionalHeadersRoundTripper) RoundTrip

RoundTrip implements the http.RoundTripper interface.

type PartialResponseRoundTripper

type PartialResponseRoundTripper struct {
	http.RoundTripper
	Allow bool
}

PartialResponseRoundTripper adds a new RoundTripper to the chain that sets the partial_response query parameter to the value of Allow.

func (*PartialResponseRoundTripper) RoundTrip

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

RoundTrip implements the RoundTripper interface.

Jump to

Keyboard shortcuts

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