http

package
v0.0.0-...-891ed02 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx *context.Context, host, port string) *http.Server

NewServer creates a new HTTP server.

Types

type PanicFormatter

type PanicFormatter struct{}

PanicFormatter implements negroni.PanicFormatter.

func (*PanicFormatter) FormatPanicError

func (pf *PanicFormatter) FormatPanicError(rw http.ResponseWriter, r *http.Request, infos *negroni.PanicInformation)

FormatPanicError formats the response for a given panic.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server ...

Jump to

Keyboard shortcuts

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