package
2.1.0-alpha.2+incompatible
Repository: https://github.com/tatsushid/teleport.git
Documentation: pkg.go.dev

# Functions

ConvertResponse converts http error to internal error type based on HTTP response code and HTTP body contents.
InsecureSetDevmodeHeaders allows cross-origin requests, used in dev mode only.
MakeHandler returns a new httprouter.Handle func from a handler func.
MakeStdHandler returns a new http.Handle func from http.HandlerFunc.
ParseBool will parse boolean variable from url query returns value, ok, error.
ReadJSON reads HTTP json request and unmarshals it into passed interface{} obj.
Rewrite creates a rewrite pair, panics if in epxression is not a valid regular expressoin.
RewritePaths creates a middleware that rewrites paths in incoming request.

# Structs

RewritePair is a rewrite expression.

# Type aliases

HandlerFunc specifies HTTP handler function that returns error.
StdHandlerFunc specifies HTTP handler function that returns error.