gosvr

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPHandlerWrapper

func HTTPHandlerWrapper(h SimpleHTTPServer) http.HandlerFunc

HTTPHandlerWrapper wraps a handler that uses loggingResponseWriter.

Types

type SimpleHTTPServer

type SimpleHTTPServer struct {
	Root    string
	Box     *packr.Box
	Version string
}

SimpleHTTPServer handles all HTTP requests.

func (SimpleHTTPServer) ServeHTTP

func (h SimpleHTTPServer) ServeHTTP(w loggingResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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