web

package
v0.0.0-...-325abe0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandleProxy

type HttpHandleProxy struct {
	Before func(http.ResponseWriter, *http.Request)
	After  func(http.ResponseWriter, *http.Request)
	Except func(http.ResponseWriter, *http.Request)
}

Http请求处理代理

func (*HttpHandleProxy) For

func (this *HttpHandleProxy) For(handle func(http.ResponseWriter,
	*http.Request)) func(http.ResponseWriter, *http.Request)

type ResponseProxyWriter

type ResponseProxyWriter struct {
	Output []byte
	// contains filtered or unexported fields
}

func NewRespProxyWriter

func NewRespProxyWriter(w http.ResponseWriter) *ResponseProxyWriter

func (*ResponseProxyWriter) Header

func (this *ResponseProxyWriter) Header() http.Header

func (*ResponseProxyWriter) Write

func (this *ResponseProxyWriter) Write(bytes []byte) (int, error)

func (*ResponseProxyWriter) WriteHeader

func (this *ResponseProxyWriter) WriteHeader(i int)

Jump to

Keyboard shortcuts

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