utilhttp

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SameSiteStrict = "Strict"
	SameSiteLax    = "Lax"
	SameSiteNone   = "None"
)

Variables

This section is empty.

Functions

func ConvertSameSite

func ConvertSameSite(sameSite string) http.SameSite

ConvertSameSite converts a string representation of SameSite to the corresponding http.SameSite value. If the input string is invalid, it logs a warning and returns http.SameSiteDefaultMode. Valid inputs are "Lax", "Strict", and "None".

Types

This section is empty.

Jump to

Keyboard shortcuts

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