user_agent_parse

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0 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.

README

UserAgent Parser

This Caddy Module allows to parse the user agent and splits it into it's components.

You can access the components via these placeholders:

  • {user_agent.name}
  • {user_agent.version}
  • {user_agent.os}
  • {user_agent.os_version}
  • {user_agent.device}
  • {user_agent.mobile}
  • {user_agent.tablet}
  • {user_agent.desktop}
  • {user_agent.bot}
  • {user_agent.url}

The module is uses the parser from here.

Install

First, the xcaddy command:

$ go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest

Then build Caddy with this Go module plugged in. For example:

$ xcaddy build --with github.com/neodyme-labs/influx_log

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAgentParse

type UserAgentParse struct {
	// contains filtered or unexported fields
}

func (UserAgentParse) CaddyModule

func (UserAgentParse) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*UserAgentParse) Provision

func (l *UserAgentParse) Provision(ctx caddy.Context) error

func (*UserAgentParse) ServeHTTP

Jump to

Keyboard shortcuts

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