ua

package
v6.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blacklist = []string{}/* 1153 elements not displayed */

Blacklist is a list of User-Agents to ignore.

Functions

func ContainsNonASCIICharacters

func ContainsNonASCIICharacters(ua string) bool

ContainsNonASCIICharacters returns true if the string only consists out of ASCII characters.

func Parse

func Parse(r *http.Request) model.UserAgent

Parse parses the User-Agent header for given request and returns the extracted information. This supports major browsers and operating systems.

Types

This section is empty.

Jump to

Keyboard shortcuts

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