Documentation
¶
Overview ¶
Package hostheader provides a HttpClient wrapper that automatically inserts the Host header into the requests it makes. Host headers are a mandatory requirement (https://datatracker.ietf.org/doc/html/rfc7230#section-5.4).
See also package prefix that extends this by inserting a prefix on all URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
func Wrap(next httpclient.HttpClient) httpclient.HttpClient
Wrap creates an automatic Host header inserter that wraps the next client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.