l4http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 1 module, 0 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 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](https://caddyserver.com/docs/json/apps/http/servers/routes/match/).

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