Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
ProxyServer defines the HTTP proxy server.
func NewProxyServer ¶
func NewProxyServer( d bool, turl string, rd uint, bmo bool, rw string, re bool, ri bool, l *zap.Logger, pr RequestCopy, ) *ProxyServer
NewProxyServer constructor creates a new ProxyServer.
func (*ProxyServer) ServeHTTP ¶
func (s *ProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP is the main handler used by the server.
func (*ProxyServer) WithRequestLoggerMiddleware ¶
func (s *ProxyServer) WithRequestLoggerMiddleware() http.Handler
WithRequestLoggerMiddleware is "middleware" that logs every request
Click to show internal directories.
Click to hide internal directories.