scripthttpd

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const EnvScript = "SCRIPT"

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	Script []string
	Addr   string
}

func ParseConfig

func ParseConfig() Opts

type Server

type Server struct {
	Opts
}

/ Server is a simple proxy server to pipe HTTP requests to a subprocess' stdin / and the subprocess' stdout to the HTTP response.

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