go-proxy/middleware.go
William Petit e2dc3e1a03
All checks were successful
Cadoles/go-proxy/pipeline/head This commit looks good
feat: simplify middleware stack
2023-05-12 10:32:45 +02:00

12 lines
196 B
Go

package proxy
import (
"net/http"
)
type (
Middleware func(h http.Handler) http.Handler
RequestTransformer func(r *http.Request)
ResponseTransformer func(r *http.Response) error
)