net

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHttpGzipHandler

func MakeHttpGzipHandler(h http.Handler) http.Handler

Types

type CrossDomainMiddleware

type CrossDomainMiddleware struct {
}

func NewCrossDomainMiddleware

func NewCrossDomainMiddleware() *CrossDomainMiddleware

func (*CrossDomainMiddleware) Middleware

func (cd *CrossDomainMiddleware) Middleware(next http.Handler) http.Handler

type HttpAuthMiddleware

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

func NewHttpAuthMiddleware

func NewHttpAuthMiddleware(user, pwd string) *HttpAuthMiddleware

func (*HttpAuthMiddleware) Middleware

func (auth *HttpAuthMiddleware) Middleware(next http.Handler) http.Handler

type HttpAuthWarper

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

type HttpGzipWraper

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

func (*HttpGzipWraper) ServeHTTP

func (gw *HttpGzipWraper) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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