httpfs: github.com/shurcooL/httpfs/httputil Index | Files

package httputil

import "github.com/shurcooL/httpfs/httputil"

Package httputil implements HTTP utility functions for http.FileSystem.

Index

Package Files

httputil.go

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.