compress

package
v0.0.0-...-24d406a Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2017 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultOptions = &Options{flate.BestSpeed, true, true}
)

Functions

func New

func New(o *Options) tiny.HandlerFunc

func Off

func Off(ctx *tiny.Context)

func On

func On(ctx *tiny.Context)

func Pull

func Pull(ctx *tiny.Context) bool

Types

type Options

type Options struct {
	Level   int
	Gzip    bool
	Deflate bool
}

Jump to

Keyboard shortcuts

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