httputil

package
v0.0.0-...-f1e31cf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 3 Imported by: 1

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