httpcommon

package module
v0.0.0-...-c9f467a Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathRedirect

func PathRedirect(r *http.Request) string

Returns a string containing URL-escaped value of the path query parameter or current endpoint path

func RedirectGetPath

func RedirectGetPath(w http.ResponseWriter, r *http.Request)

Redirects to path query parameter. Can only redirect in the same host (to prevent security issues)

func RedirectRoot

func RedirectRoot(w http.ResponseWriter, r *http.Request)

Redirects to the website root path, preserving the "path" query parameter

func Refresh

func Refresh(w http.ResponseWriter, r *http.Request)

Refreshes the website by redirecting to current request URI

Types

This section is empty.

Jump to

Keyboard shortcuts

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