http

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DomainFromRequest

func DomainFromRequest(req *http.Request) string

DomainFromRequest returns the host by given http request.

func ExternalAddress

func ExternalAddress(scheme, host string, port int) string

ExternalAddress to build external http address by given scheme, host and port.

func ExternalEndpoint

func ExternalEndpoint(scheme, host string, port int, path string) string

ExternalEndpoint to build external http endpoint by given address and path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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