Versions in this module Expand all Collapse all v0 v0.9.0 Sep 26, 2019 Changes in this version + var TemplatesMap = make(map[string]*template.Template) + func Adapt(h http.Handler, adapters ...Adapter) http.Handler + func GetRUID(ctx context.Context) string + func GetURI(ctx context.Context) *api.URI + func InitLoggingResponseWriter(h http.Handler) http.Handler + func InstrumentOpenTracing(h http.Handler) http.Handler + func ParseURI(h http.Handler) http.Handler + func RecoverPanic(h http.Handler) http.Handler + func RespondError(w http.ResponseWriter, r *http.Request, msg string, code int) + func RespondTemplate(w http.ResponseWriter, r *http.Request, templateName, msg string, code int) + func SetRUID(ctx context.Context, ruid string) context.Context + func SetRequestHost(h http.Handler) http.Handler + func SetRequestID(h http.Handler) http.Handler + func SetURI(ctx context.Context, uri *api.URI) context.Context + func ShowMultipleChoices(w http.ResponseWriter, r *http.Request, list api.ManifestList) + type Adapter func(http.Handler) http.Handler + type ResponseParams struct + Code int + Details template.HTML + Msg template.HTML + Timestamp string + type RoundTripper struct + Host string + Port string + func (self *RoundTripper) RoundTrip(req *http.Request) (resp *http.Response, err error) + type Server struct + func NewServer(api *api.API, corsString string) *Server + func (s *Server) HandleBzzGet(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleDelete(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGet(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGetFile(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGetList(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleGetResource(w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePostFiles(w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePostRaw(w http.ResponseWriter, r *http.Request) + func (s *Server) HandlePostResource(w http.ResponseWriter, r *http.Request) + func (s *Server) HandleRootPaths(w http.ResponseWriter, r *http.Request) + func (s *Server) ListenAndServe(addr string) error