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 ¶
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) UnmarshalJSON ¶
UnmarshalJSON satisfies the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.