request

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDomain added in v1.8.0

func GetDomain(r *http.Request) *domain.Domain

GetDomain extracts the domain from request's context

func GetHost added in v1.8.0

func GetHost(r *http.Request) string

GetHost extracts the host from request's context

func IsHTTPS

func IsHTTPS(r *http.Request) bool

IsHTTPS restores https flag from request's context

func WithHTTPSFlag

func WithHTTPSFlag(r *http.Request, https bool) *http.Request

WithHTTPSFlag saves https flag in request's context

func WithHostAndDomain added in v1.8.0

func WithHostAndDomain(r *http.Request, host string, domain *domain.Domain) *http.Request

WithHostAndDomain saves host name and domain in the request's context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL