Documentation ¶
Overview ¶
Package takanawa is the HTTP/HTTPS reverse proxy utilities.
Index ¶
Constants ¶
View Source
const ( HeaderTakanawaRequestID = "X-Takanawa-Request-Id" HeaderAccessControlAllowOrigin = "Access-Control-Allow-Origin" HeaderAccessControlAllowMethods = "Access-Control-Allow-Methods" HeaderAccessControlAllowHeaders = "Access-Control-Allow-Headers" HeaderAccessControlExposeHeaders = "Access-Control-Expose-Headers" HeaderAccessControlAllowCredentials = "Access-Control-Allow-Credentials" )
HTTP headers.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
The ContextKey is the type of context key.
var (
ContextTakanawaRequestID ContextKey
)
Context keys.
type Middleware ¶
A Middleware transforms http.Handler.
func ComposeMiddleware ¶
func ComposeMiddleware(mids ...Middleware) Middleware
ComposeMiddleware composes mids.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
Package middleware is the middlewares of takanawa.
|
Package middleware is the middlewares of takanawa. |
Click to show internal directories.
Click to hide internal directories.