url

package
v0.0.0-...-26e77a4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package URL allows for storing and retrieving request URL details in the strict server endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Absolute

func Absolute(h http.Handler) http.Handler

Absolute is a middleware function that resolves request URLs to absolute URLs using the Origin header.

func Get

func Get(ctx context.Context) *url.URL

Get retrieves the URL from the given context.

func Store

func Store(h http.Handler) http.Handler

Store is a middleware function that stores the incoming request URL in the

Types

This section is empty.

Jump to

Keyboard shortcuts

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