resp

package
v0.0.0-...-7690095 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2017 License: MIT Imports: 6 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 {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func NewGzipResponseWriter

func NewGzipResponseWriter(w http.ResponseWriter, r *http.Request) *GzipResponseWriter

func NewGzipResponseWriterLevel

func NewGzipResponseWriterLevel(w http.ResponseWriter, r *http.Request, level int) *GzipResponseWriter

func NewGzipResponseWriterLevelFile

func NewGzipResponseWriterLevelFile(w http.ResponseWriter, r *http.Request, level int, file *os.File) *GzipResponseWriter

func (*GzipResponseWriter) Close

func (gw *GzipResponseWriter) Close() error

GzipResponseWriter must be manually closed!

func (*GzipResponseWriter) RawSize

func (gw *GzipResponseWriter) RawSize() int64

func (*GzipResponseWriter) Write

func (gw *GzipResponseWriter) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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