fileserver

package
v0.0.0-...-c44cdd8 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	http.Handler

	Address          string
	DocumentRoot     string
	DirectoryListing bool
	DirectoryIndex   []string
	AliasMap         map[string]string
}

Server data structure

func FileServer

func FileServer() *Server

FileServer creates a new Server struct

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe listens on the network address and runs the HTTP server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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