http

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyService

func NewProxyService(
	subservices []Subservice,
	sharedListener net.Listener,
	logger log.Logger,
) (internal.Service, error)

NewProxyService create a new HTTP proxy service.

Types

type Subservice

type Subservice struct {
	Connector                http.Connector
	ConnectorID              string
	RetrieveCredentials      internal.CredentialsRetriever
	AuthenticateURLsMatching []*regexp.Regexp
}

Subservice handles specific traffic within an HTTP proxy service, using traffic filtering rules and a devoted Connector.

func (*Subservice) Matches

func (sub *Subservice) Matches(url string) bool

Matches returns true if any of the patterns in the Subservice's AuthenticateURLsMatching match the given url.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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