handler

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// TLS enables handler to look up TLS ClientHello from reservoir.
	//
	// Mutually exclusive with QUIC. One and only one of TLS or QUIC must be true.
	TLS bool `json:"tls,omitempty"`

	// QUIC enables handler to look up QUIC ClientHello from reservoir.
	//
	// Mutually exclusive with TLS. One and only one of TLS or QUIC must be true.
	QUIC bool `json:"quic,omitempty"`
	// contains filtered or unexported fields
}

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Handler) Provision

func (h *Handler) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(wr http.ResponseWriter, req *http.Request, next caddyhttp.Handler) error

func (*Handler) UnmarshalCaddyfile added in v0.2.1

func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile unmarshals Caddyfile tokens into h.

Jump to

Keyboard shortcuts

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