httphandler

package
v0.0.28-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

type HttpHandler struct {
	RequestHandlers  func(http.Request)
	ResponseHandlers func(http.Response)
}

func NewHttpHandler

func NewHttpHandler() *HttpHandler

func (*HttpHandler) AddRequestHandler

func (handler *HttpHandler) AddRequestHandler(requestHandler func(http.Request)) *HttpHandler

func (*HttpHandler) AddResponseHandler

func (handler *HttpHandler) AddResponseHandler(responseHandler func(response http.Response)) *HttpHandler

Jump to

Keyboard shortcuts

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