l4http

package
v0.0.0-...-8b31d38 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchHTTP

type MatchHTTP struct {
	MatcherSetsRaw caddyhttp.RawMatcherSets `json:"-" caddy:"namespace=http.matchers"`
	// contains filtered or unexported fields
}

MatchHTTP is able to match HTTP connections. The auto-generated documentation for this type is wrong; instead of an object, it is an array of matcher set objects.

func (MatchHTTP) CaddyModule

func (MatchHTTP) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (MatchHTTP) MarshalJSON

func (m MatchHTTP) MarshalJSON() ([]byte, error)

MarshalJSON satisfies the json.Marshaler interface.

func (MatchHTTP) Match

func (m MatchHTTP) Match(cx *layer4.Connection) (bool, error)

Match returns true if the conn starts with an HTTP request.

func (*MatchHTTP) Provision

func (m *MatchHTTP) Provision(ctx caddy.Context) error

Provision sets up the handler.

func (*MatchHTTP) UnmarshalJSON

func (m *MatchHTTP) UnmarshalJSON(b []byte) error

UnmarshalJSON satisfies the json.Unmarshaler interface.

Jump to

Keyboard shortcuts

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