Documentation
¶
Overview ¶
Package priority resolves trusted request importance and propagates it through explicitly selected HTTP destinations. It performs no authentication or I/O.
Index ¶
Constants ¶
const Header = "X-Gatewise-Priority"
Variables ¶
var ErrInvalid = errors.New("priority_metadata_invalid")
var ErrUntrusted = errors.New("priority_metadata_untrusted")
Functions ¶
Types ¶
type Metadata ¶
type Policy ¶
type Policy struct {
// contains filtered or unexported fields
}
type Transport ¶
type Transport struct {
Base http.RoundTripper
Hosts []string
}
Transport propagates only to exact URL Host values (including port) in Hosts. Other destinations have the reserved metadata stripped. Caller requests are cloned. Redirects require the application's normal redirect/security policy as well.