const DefaultHostAcceptRE …
const DefaultPathAcceptRE …
const DefaultPathRejectRE …
const DefaultMethodRejectRE …
type FilterServer …
func MakeRegexpArray(str string) ([]*regexp.Regexp, error) { … }
func MakeRegexpArrayOrDie(str string) []*regexp.Regexp { … }
func matchesRegexp(str string, regexps []*regexp.Regexp) bool { … }
func (f *FilterServer) accept(method, path, host string) bool { … }
func (f *FilterServer) HandlerFor(delegate http.Handler) *FilterServer { … }
func extractHost(header string) (host string) { … }
func (f *FilterServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) { … }
type Server …
type responder …
func (r *responder) Error(w http.ResponseWriter, req *http.Request, err error) { … }
func makeUpgradeTransport(config *rest.Config, keepalive time.Duration) (proxy.UpgradeRequestRoundTripper, error) { … }
func NewServer(filebase string, apiProxyPrefix string, staticPrefix string, filter *FilterServer, cfg *rest.Config, keepalive time.Duration, appendLocationPath bool) (*Server, error) { … }
func NewProxyHandler(apiProxyPrefix string, filter *FilterServer, cfg *rest.Config, keepalive time.Duration, appendLocationPath bool) (http.Handler, error) { … }
func (s *Server) Listen(address string, port int) (net.Listener, error) { … }
func (s *Server) ListenUnix(path string) (net.Listener, error) { … }
func (s *Server) ServeOnListener(l net.Listener) error { … }
func newFileHandler(prefix, base string) http.Handler { … }
func stripLeaveSlash(prefix string, h http.Handler) http.Handler { … }