Documentation ¶
Overview ¶
Package http is a browser-targeted HTTP server for Pachyderm. It includes what used to be called the "archive server" (for /archive/ downloads) and the "file server" (for /pfs/ downloads). Any future user-facing HTTP services should be added here.
The general design here is for the servers to be relatively untrusted. They build a PachClient based on the HTTP request, and then make ordinary API calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSRFWrapper ¶
func CSRFWrapper(h http.Handler) http.HandlerFunc
CSRFWrapper is an http.Handler that provides CSRF protection to the underlying handler.
Types ¶
type Server ¶
type Server struct { Server *http.Server // For ListenAndServe. // contains filtered or unexported fields }
Server is an http.Server that serves public requests.
Click to show internal directories.
Click to hide internal directories.