requests

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package requests contains utilities for retrieving data stored in http.Request reference.

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyParam = errors.New("requested URL parameter is empty")
View Source
var ErrValueNotFound = errors.New("requests: value not found in ctx")

Functions

func Debug added in v0.4.0

func Debug(r *http.Request) (bool, error)

func DeviceID

func DeviceID(r *http.Request) (string, error)

func TwoFactorID added in v0.4.0

func TwoFactorID(r *http.Request) (string, error)

TwoFactorID returns two factor method's id from url.

func UserID

func UserID(r *http.Request) (string, error)

UserID returns user id from url.

Types

This section is empty.

Jump to

Keyboard shortcuts

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