incapsula

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrScriptNotFound = errors.New("hyper: utmvc script not found")
)

Functions

func GetUtmvcSubmitPath

func GetUtmvcSubmitPath() string

GetUtmvcSubmitPath generates a UTMVC submit path with a unique random query parameter.

This function constructs a submit path for the UTMVC script by appending a random floating-point number as a query parameter. The random number is used to ensure the uniqueness of the request.

func ParseUtmvcScriptPath

func ParseUtmvcScriptPath(script io.Reader) (string, error)

ParseUtmvcScriptPath parses the UTMVC script path from the given script content.

This function searches the provided script content for a specific pattern matching the UTMVC script path using a precompiled regular expression. It extracts and returns the first match if found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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