Documentation ¶
Overview ¶
Package xhostname middleware provides `X-Hostname` header in each request and useful when using scalable container platform to see which host sent you current response.
To use this package, just call `xhostname.Setup`:
app := gramework.New() xhostname.Setup(app)
Index ¶
Constants ¶
View Source
const (
// HeaderKey is the header name which we use
HeaderKey = "X-Hostname"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.