Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidHost = errors.New("rewrite host has invalid type")
View Source
var RewriteHostKey rewriteKeyType = "__uncors_rewrite_host"
Functions ¶
func GetRewriteHost ¶
GetRewriteHost extracts the rewrite host from the request context. Returns ErrInvalidHost if the value exists but is not a string.
func IsRewriteRequest ¶
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(options ...MiddlewareOption) *Middleware
type MiddlewareOption ¶
type MiddlewareOption = func(*Middleware)
func WithRewritingOptions ¶
func WithRewritingOptions(rewrite config.RewritingOption) MiddlewareOption
Click to show internal directories.
Click to hide internal directories.