webs

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 4 Imported by: 3

README

util-webs GoDoc

web library for Go

Installation

go get gopkg.in/goyy/goyy.v0/util/webs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsXMLHttpRequest

func IsXMLHttpRequest(r *http.Request) bool

IsXMLHttpRequest reports whether the request is a Ajax Request.

func Params

func Params(req *http.Request, prefix ...string) (map[string]string, error)

Params form contains the parsed form data, including both the URL field's query parameters and the POST or PUT form data.

func ParseQuery

func ParseQuery(params url.Values) string

ParseQuery returns the url.Query by the url.Values.

func ParseUrlSpecialChars

func ParseUrlSpecialChars(s string) string

ParseUrlSpecialChars parse url.

func RemoteIP

func RemoteIP(req *http.Request) string

RemoteIP returns the Remote IP

func ToParams

func ToParams(values url.Values, prefix ...string) map[string]string

ToParams form contains the parsed form data, including both the URL field's query parameters and the POST or PUT form data.

func Values

func Values(req *http.Request) (values url.Values, err error)

Values form contains the parsed form data, including both the URL field's query parameters and the POST or PUT form data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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