Documentation ¶
Index ¶
- Constants
- type Builder
- func (b *Builder) Build() http.Header
- func (b *Builder) BuildTo(out http.Header)
- func (b *Builder) Get(key string) string
- func (b *Builder) With(key, value string) *Builder
- func (b *Builder) WithAuthz(token string) *Builder
- func (b *Builder) WithHost(host string) *Builder
- func (b *Builder) WithXForwardedFor(ip string) *Builder
Constants ¶
View Source
const ( Host = "Host" Authorization = "Authorization" XForwardedFor = "X-Forwarded-For" AccessControlRequestMethod = "Access-Control-Request-Method" Origin = "Origin" XForwardedProto = "X-Forwarded-Proto" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder for HTTP headers.
func (*Builder) WithXForwardedFor ¶
WithXForwardedFor sets the origin IP of the request.
Click to show internal directories.
Click to hide internal directories.