httpfs: Index | Files

package httputil

import ""

Package httputil implements HTTP utility functions for http.FileSystem.


Package Files


type FileHandler Uses

type FileHandler struct {
    File http.FileSystem

FileHandler is an http.Handler that serves the root of File, which is expected to be a normal file (not a directory).

func (FileHandler) ServeHTTP Uses

func (h FileHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Package httputil imports 3 packages (graph) and is imported by 1 packages. Updated 2016-07-31. Refresh now. Tools for package owners.