023_serving-files/

directory
v0.0.0-...-6ea799e Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 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

Directories

Path Synopsis
01_not-serving
01
02
02_serving

Jump to

Keyboard shortcuts

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