standard

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandardFileServer

type StandardFileServer struct {
	Next          http.Handler // No Next, this is the bottom of the stack.
	Paths         []string
	Root          []string
	StripPrefix   []string
	IndexFileList []string
	LineNo        int
}

func NewStandardFileServer

func NewStandardFileServer(n http.Handler, p []string, r []string, m []string) *StandardFileServer

func (*StandardFileServer) ServeHTTP

func (hdlr *StandardFileServer) ServeHTTP(www http.ResponseWriter, req *http.Request)

This is the bottom of the stack - at this point we check

  1. If the file is in the in-memory cache
  2. If the file is on disk

Also this is the standard server - only one location to check.

func (*StandardFileServer) SetNext

func (hdlr *StandardFileServer) SetNext(next http.Handler)

normally identical

Jump to

Keyboard shortcuts

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