Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server acts as an HTTP proxy, returning entries from the cache whenever possible. Recognized archive mirrors are silently rewritten to avoid needless duplication.
func (*Server) ServeHTTP ¶
func (s *Server) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServeHTTP processes an incoming request to the proxy. GET requests are served with the storage backend and every other request is (out of necessity) rejected since it can't be cached.
Click to show internal directories.
Click to hide internal directories.