handler

package
v0.0.0-...-be81314 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlushWriter

type FlushWriter struct {
	Writer  io.Writer
	Flusher http.Flusher
}

FlushWriter is ...

func NewFlushWriter

func NewFlushWriter(w http.ResponseWriter) *FlushWriter

NewFlushWriter is ...

func (*FlushWriter) Write

func (c *FlushWriter) Write(b []byte) (int, error)

Write is ...

type Handler

type Handler struct {
	WebSocket bool `json:"websocket,omitempty"`
	Connect   bool `json:"connect_method,omitempty"`
	Verbose   bool `json:"verbose,omitempty"`
	GRPC      bool `json:"grpc,omitempty"`

	// Upstream is ...
	Upstream app.Upstream `json:"-,omitempty"`
	// Proxy is ...
	Proxy app.Proxy `json:"-,omitempty"`
	// Logger is ...
	Logger *zap.Logger `json:"-,omitempty"`
	// Upgrader is ...
	Upgrader websocket.Upgrader `json:"-,omitempty"`
}

Handler implements an HTTP handler that ...

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Handler) Provision

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

Provision implements caddy.Provisioner.

func (*Handler) ServeHTTP

func (m *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*Handler) UnmarshalCaddyfile

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