urls

package
v0.0.0-...-925651e Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseURL

func BaseURL(uri *string) string

func GetAddr

func GetAddr() string

Types

type NetHttpURL

type NetHttpURL struct {
	ResponseWriter http.ResponseWriter
	HttpRequest    *http.Request
}

func NetHttp

func NetHttp(w http.ResponseWriter, r *http.Request) *NetHttpURL

func (*NetHttpURL) BaseURL

func (u *NetHttpURL) BaseURL() string

func (*NetHttpURL) CurrentURL

func (u *NetHttpURL) CurrentURL() string

func (NetHttpURL) Default

func (u NetHttpURL) Default() *url.URL

func (*NetHttpURL) PreviousURL

func (u *NetHttpURL) PreviousURL() string

func (*NetHttpURL) RedirectPrevious

func (u *NetHttpURL) RedirectPrevious() *errors.AppError

type URLContract

type URLContract interface {
	Default() *url.URL

	BaseURL() string
	CurrentURL() string
	PreviousURL() string
	RedirectPrevious() *errors.AppError
}

Jump to

Keyboard shortcuts

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