appsec

package
v0.0.0-...-943d3da Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 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 Handler

type Handler struct {
	UseCaddyErrorHandler bool `json:"use_caddy_error_handler,omitempty"`
	// contains filtered or unexported fields
}

Handler checks the CrowdSec AppSec component decided whether an HTTP request is blocked or not.

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Handler) Cleanup

func (h *Handler) Cleanup() error

Cleanup cleans up resources when the module is being stopped.

func (*Handler) Provision

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

Provision sets up the CrowdSec AppSec handler.

func (*Handler) ServeHTTP

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

ServeHTTP is the Caddy handler for serving HTTP requests.

func (*Handler) UnmarshalCaddyfile

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

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

func (*Handler) Validate

func (h *Handler) Validate() error

Validate ensures the app's configuration is valid.

Jump to

Keyboard shortcuts

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