mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Add request and response modifier support
This commit is contained in:
11
proxy/modify.go
Normal file
11
proxy/modify.go
Normal file
@ -0,0 +1,11 @@
|
||||
package proxy
|
||||
|
||||
import "net/http"
|
||||
|
||||
var (
|
||||
nopReqModifier = func(req *http.Request) {}
|
||||
nopResModifier = func(res *http.Response) error { return nil }
|
||||
)
|
||||
|
||||
type RequestModifyFunc func(req *http.Request)
|
||||
type ResponseModifyFunc func(res *http.Response) error
|
Reference in New Issue
Block a user