Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder func(url *url.URL) *httputil.ReverseProxy
var DefaultReverseProxy Builder = func(url *url.URL) *httputil.ReverseProxy { return httputil.NewSingleHostReverseProxy(url) }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(environment utils.Environment, logger logging.Logger) *Handler
func (*Handler) Serve ¶
func (s *Handler) Serve(proxy *httputil.ReverseProxy) func(w http.ResponseWriter, r *http.Request)
func (*Handler) ServeDefaultReverseProxy ¶
func (*Handler) ServeDevServer ¶
func (s *Handler) ServeDevServer(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.