http

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package http extends the http package in the stdlib.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerAcceptor

type HandlerAcceptor interface {
	// Handle registers the handler for the given pattern.
	// If a handler already exists for pattern, Handle panics.
	Handle(pattern string, handler http.Handler)

	// HandleFunc registers the handler function for the given pattern.
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
}

HandlerAcceptor accepts an http.Handler or http.HandlerFunc and registers it for a pattern.

Directories

Path Synopsis
Package pprof extends the pprof package in the stdlib.
Package pprof extends the pprof package in the stdlib.

Jump to

Keyboard shortcuts

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