thanos

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdditionalHeadersRoundTripper added in v0.9.0

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 added in v0.9.0

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