request

package
v0.0.0-...-5365f31 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cookie(r *http.Request, name string) string

Cookie returns the cookie value.

func FormInt64Value

func FormInt64Value(r *http.Request, param string) int64

FormInt64Value returns a form value as integer.

func HasQueryParam

func HasQueryParam(r *http.Request, param string) bool

HasQueryParam checks if the query string contains the given parameter.

func IntParam

func IntParam(r *http.Request, param string) (int64, error)

IntParam returns an URL route parameter as integer.

func Param

func Param(r *http.Request, param, defaultValue string) string

Param returns an URL route parameter as string.

func QueryInt64Param

func QueryInt64Param(r *http.Request, param string, defaultValue int64) int64

QueryInt64Param returns a querystring parameter as int64.

func QueryIntParam

func QueryIntParam(r *http.Request, param string, defaultValue int) int

QueryIntParam returns a querystring parameter as integer.

func QueryParam

func QueryParam(r *http.Request, param, defaultValue string) string

QueryParam returns a querystring parameter as string.

func RealIP

func RealIP(r *http.Request) string

RealIP returns client's real IP address.

Types

This section is empty.

Jump to

Keyboard shortcuts

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