092-Serving-Files-With-FileServer/

directory
v0.0.0-...-228c668 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: MIT

README

Serving files


ServeContent

http.ServeContent

func ServeContent(w ResponseWriter, req *Request, name string, modtime time.Time, content io.ReadSeeker)

ServeFile

http.ServeFile

func ServeFile(w ResponseWriter, r *Request, name string)

FileServer & StripPrefix

http.FileServer

func FileServer(root FileSystem) Handler

http.StripPrefix

func StripPrefix(prefix string, h Handler) Handler

Jump to

Keyboard shortcuts

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