http

package
v2.8.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2018 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDigestAuth

func GetDigestAuth(resp *http.Response, method, requestPath, user, password string) string

func GzipFunc

func GzipFunc(f http.HandlerFunc) http.HandlerFunc

GzipFunc wraps an http.HandlerFunc and gzips responses if the client supports it

func GzipHandler

func GzipHandler(handler http.Handler) http.Handler

GzipHandler wraps an http.Handler and gzips responses if the client supports it

func NewHTTPLogHandler

func NewHTTPLogHandler(h http.Handler) http.Handler

Types

type HTTPLogHandler

type HTTPLogHandler struct {
	Handler          http.Handler
	TrustedIPHeaders []string
}

func (HTTPLogHandler) ServeHTTP

func (l HTTPLogHandler) ServeHTTP(res http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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