Documentation

Overview

Package testwebserver offers a tiny web server that serves a static file.

Index

Constants

This section is empty.

Variables

var CmdTestWebserver = &cobra.Command{
	Use:   "test-webserver",
	Short: "Starts a simple HTTP fileserver",
	Long:  "Starts a simple HTTP fileserver on the given --port, which serves any file specified in the URL path, if it exists.",
	Args:  cobra.MaximumNArgs(0),
	Run:   main,
}

CmdTestWebserver is used by agnhost Cobra.


Functions

This section is empty.

Types

This section is empty.