csp

package module
v0.0.0-...-b00edad Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSP

type CSP struct {
	Template   string `json:"template,omitempty"`
	ReportOnly bool   `json:"report_only,omitempty"`
	// contains filtered or unexported fields
}

func (CSP) CaddyModule

func (CSP) CaddyModule() caddy.ModuleInfo

func (*CSP) Provision

func (c *CSP) Provision(ctx caddy.Context) error

func (*CSP) ServeHTTP

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

func (*CSP) UnmarshalCaddyfile

func (c *CSP) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:

csp <template> [<report_only>]

Jump to

Keyboard shortcuts

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