middleware

package
v0.0.0-...-2422fc7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContainer

func NewContainer(originalTransport *http.RoundTripper) *container

Types

type Middleware

type Middleware interface {
	ModifyRequest(request *http.Request) (modifiedRequest *http.Request)
}

type ZeroRating

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

func NewZeroRating

func NewZeroRating() *ZeroRating

func (*ZeroRating) ModifyRequest

func (zr *ZeroRating) ModifyRequest(req *http.Request) (modifiedRequest *http.Request)

func (*ZeroRating) ReWrite

func (zr *ZeroRating) ReWrite(uri string) (result string)

func (*ZeroRating) Reset

func (zr *ZeroRating) Reset()

func (*ZeroRating) Update

func (zr *ZeroRating) Update(rules map[string]string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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