httputil

package
Version: v0.0.0-...-8d4bc4b Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2019 License: MIT Imports: 3 Imported by: 2

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)

Source Files

Jump to

Keyboard shortcuts

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