request

package
v0.0.0-...-2cf4783 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequestedWith

func CheckRequestedWith(r *http.Request, expected string) bool

CheckRequestedWith checks X-Requested-With value. It can be use CSRF Prevention.

func HasXMLHttpRequest

func HasXMLHttpRequest(r *http.Request) bool

HasXMLHttpRequest checks whether request header contains XMLHttpRequest as value of X-Requested-With.

Types

This section is empty.

Jump to

Keyboard shortcuts

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