formutil

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Form Util: similar to ParseForm, ParseMultipartForm from http.Request, except it's cohesive rather than coupled, Request Body and Url Query string are kept separate. I like it that way.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBody

func ParseBody(r *http.Request)

Parse Body of Request

func ParseJQuerySerializeArrayBody added in v1.1.1

func ParseJQuerySerializeArrayBody(r *http.Request)

Parse http://api.jquery.com/serializearray/ in JSON format Request Body must be in JSON format. 'JSON.stringify(object);' in Javascript. Eg [{"name":"","value":""},{"name":"","value":""},{"name":"","value":""}...]

Notice both 'name' and 'value' must be string or it won't work.

func ParseMultipartBody

func ParseMultipartBody(r *http.Request, maxMemory int64)

Parse Body of Request (Multipart)

func ParseUrlQuery

func ParseUrlQuery(r *http.Request)

Parse Url Query string

Types

This section is empty.

Jump to

Keyboard shortcuts

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