filters

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(ctx *roboot.Context, chain roboot.Handler)

Types

type CORS

type CORS struct {
	Origins          []string
	Methods          []string
	Headers          []string
	ExposeHeaders    []string // these headers can be accessed by javascript
	PreflightMaxage  int      // max efficient seconds of browser preflight
	AllowCredentials bool
}

func (*CORS) ToFilter

func (c *CORS) ToFilter() roboot.Filter

type JSONP

type JSONP string

use as callback parameter name such as ?callback=xxx

func (JSONP) Filter

func (j JSONP) Filter(ctx *roboot.Context, chain roboot.Handler)

type Recovery

type Recovery struct {
	Bufsize int
}

func (Recovery) Filter

func (r Recovery) Filter(ctx *roboot.Context, chain roboot.Handler)

Jump to

Keyboard shortcuts

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