util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHost

func GetHost(request *http.Request) string

Get the host from the request values with the following priority: 1. Header X-Forwarded-Host 2. host from request 3. host from request.URL

func GetPath

func GetPath(path string, request *http.Request) string

Calculate the path. If a header X-Forwarded-Prefix is found, the result is prefixed

func GetSchemeHost

func GetSchemeHost(request *http.Request) (string, string)

func GetUrl

func GetUrl(path string, request *http.Request) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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