request

package
v2.4.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2019 License: AGPL-3.0 Imports: 3 Imported by: 63

Documentation

Overview

Package request provides HTTP request parsing functions.

Package request provides HTTP request parsing functions.

Package request provides HTTP request parsing functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSSL

func IsSSL(r *http.Request) bool

IsSSL returns true if Referer header contains "https". If Referer header is empty we look at r.TLS setting.

func Param added in v1.51.0

func Param(r *http.Request, p string) string

Param returns the requested paramater from route request.

func Params

func Params(r *http.Request) map[string]string

Params returns the paramaters from route request.

func Query

func Query(r *http.Request, key string) string

Query returns query string from HTTP request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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