handler

package module
v0.1.2-0...-80fb5a5 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 10 Imported by: 0

README

encode-handler

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodingHandler

func EncodingHandler(allowedEncodingList []EncodingType, next http.Handler) (http.Handler, error)

EncodingHandler handles http requests with "Accept-Encoding" header

Types

type EncodingType

type EncodingType string

EncodingType is type for Encodings

const (
	// AES128GCM is the const for encoding aes128gcm
	AES128GCM EncodingType = "aes128gcm"
	// BR is the const for encoding br
	BR EncodingType = "br"
	// Compress is the const for encoding compress
	Compress EncodingType = "compress"
	// Deflate is the const for encoding deflate
	Deflate EncodingType = "deflate"
	// EXI is the const for encoding exi
	EXI EncodingType = "exi"
	// GZip is the const for encoding gzip
	GZip EncodingType = "gzip"
	// Identity is the const for encoding identity
	Identity EncodingType = "identity"
	// Pack200GZip is the const for encoding pack200-gzip
	Pack200GZip EncodingType = "pack200-gzip"
	// ZStd is the const for encoding zstd
	ZStd EncodingType = "zstd"
	// XCompress is the const for encoding x-compress
	XCompress EncodingType = "x-compress"
	// XGZip is the const for encoding x-gzip
	XGZip EncodingType = "x-gzip"
	// All is the const for encoding *
	All EncodingType = "*"
)

Jump to

Keyboard shortcuts

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