Documentation
¶
Index ¶
- func GetDomain(r *http.Request) *domain.Domain
- func GetHost(r *http.Request) string
- func GetHostWithoutPort(r *http.Request) string
- func IsHTTPS(r *http.Request) bool
- func WithHTTPSFlag(r *http.Request, https bool) *http.Request
- func WithHostAndDomain(r *http.Request, host string, domain *domain.Domain) *http.Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostWithoutPort ¶ added in v1.13.0
GetHostWithoutPort returns a host without the port. The host(:port) comes from a Host: header if it is provided, otherwise it is a server name.
func WithHTTPSFlag ¶
WithHTTPSFlag saves https flag in request's context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.