middleware

package
v0.0.0-...-8150c3c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GzipResponseWriter

type GzipResponseWriter struct {
	// contains filtered or unexported fields
}

func (*GzipResponseWriter) Flush

func (gz *GzipResponseWriter) Flush()

func (*GzipResponseWriter) Header

func (gz *GzipResponseWriter) Header() http.Header

func (*GzipResponseWriter) Write

func (gz *GzipResponseWriter) Write(d []byte) (int, error)

func (*GzipResponseWriter) WriteHeader

func (gz *GzipResponseWriter) WriteHeader(code int)

type Gzipper

type Gzipper struct {
}

func (*Gzipper) GzipperMiddleware

func (g *Gzipper) GzipperMiddleware(next http.Handler) http.Handler

Gzipper middleware cheks whether gzip is supported by the client and if true compresses the image before streaming it out

Jump to

Keyboard shortcuts

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