Documentation
¶
Index ¶
- func NewResponseWriter(rw http.ResponseWriter) http.ResponseWriter
- func NewReverseProxy(target *url.URL, opts *configOptions.Options) (*httputil.ReverseProxy, error)
- func NewWebSocketOrRestReverseProxy(u *url.URL, opts *configOptions.Options) (restProxy http.Handler)
- type MetricsServer
- type ProxyServer
- type Server
- type UpstreamProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponseWriter ¶
func NewResponseWriter(rw http.ResponseWriter) http.ResponseWriter
func NewReverseProxy ¶
func NewReverseProxy(target *url.URL, opts *configOptions.Options) (*httputil.ReverseProxy, error)
Types ¶
type MetricsServer ¶
func (*MetricsServer) ListenAndServe ¶
func (s *MetricsServer) ListenAndServe()
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
func NewProxyServer ¶
func NewProxyServer(opts *configOptions.Options) *ProxyServer
func (*ProxyServer) RegisterRequestHandlers ¶
func (p *ProxyServer) RegisterRequestHandlers(reqHandlers []handlers.RequestHandler)
RegisterRequestHandlers adds request handlers to the
func (*ProxyServer) ServeHTTP ¶
func (p *ProxyServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
func (*ProxyServer) StructuredError ¶
func (p *ProxyServer) StructuredError(rw http.ResponseWriter, err error)
type Server ¶
func (*Server) ListenAndServe ¶
func (s *Server) ListenAndServe()
type UpstreamProxy ¶
type UpstreamProxy struct {
// contains filtered or unexported fields
}
func (*UpstreamProxy) ServeHTTP ¶
func (u *UpstreamProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.