httputil

package
v0.0.0-...-389821e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package httputil implements HTTP utility functions for http.FileSystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHandler

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL