runtime

package
v0.0.0-...-57962ab Latest Latest
Warning

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

Go to latest
Published: May 30, 2014 License: MIT Imports: 3 Imported by: 0

README

Runtime Middleware

A very simple middleware which adds a response header (X-Runtime) with the value of how long the request process took. Ideally this should be the very first middleware your add.

ToDo: List which settings are needed, and an example of how it works.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profiler

type Profiler struct {
	tango.BaseMiddleware
}

func (*Profiler) ProcessRequest

func (m *Profiler) ProcessRequest(request *tango.HttpRequest) *tango.HttpResponse

func (*Profiler) ProcessResponse

func (m *Profiler) ProcessResponse(request *tango.HttpRequest, response *tango.HttpResponse)

Jump to

Keyboard shortcuts

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