cgiserver

package
v0.0.0-...-45b1161 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2021 License: GPL-3.0 Imports: 8 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
	InheritEnv       []string
	DirectoryListing bool
	DirectoryIndex   []string
	DefaultHandler   string
	AliasMap         map[string]string
	HandlerMap       map[string]string
}

Server data structure

func CGIServer

func CGIServer() *Server

CGIServer 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