http

package
v1.17.10 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 7 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP added in v1.13.0

type HTTP struct {
	// contains filtered or unexported fields
}

HTTP returns HTTP middleware pipelines. These pipelines dynamically update the middleware chain when a component is added or removed from the store. Callers need only build a Pipeline once for a given spec.

func New added in v1.13.0

func New() *HTTP

New returns a new HTTP middleware store.

func (*HTTP) Add added in v1.13.0

func (h *HTTP) Add(spec Spec)

Add adds a middleware to the store.

func (*HTTP) BuildPipelineFromSpec added in v1.13.0

func (h *HTTP) BuildPipelineFromSpec(name string, spec *config.PipelineSpec) middleware.HTTP

BuildPipelineFromSpec builds a middleware pipeline from a spec. The returned Pipeline will dynamically update handlers when middleware components are added or removed from the store.

func (*HTTP) Remove added in v1.13.0

func (h *HTTP) Remove(name string)

Remove removes a middleware from the store.

type Spec added in v1.13.0

type Spec struct {
	Component      compapi.Component
	Implementation middleware.HTTP
}

Spec is a specification for a creating a middleware.

Jump to

Keyboard shortcuts

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