xhostname

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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

func Setup

func Setup(app *gramework.App)

Setup registers middleware in the provided app

Types

This section is empty.

Jump to

Keyboard shortcuts

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