goji

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	*http.Request
	// contains filtered or unexported fields
}

Request holds a http.Request and knows how to pull Goji path params from the request context.

func (*Request) BodyForm

func (r *Request) BodyForm() (url.Values, error)

BodyForm parses and returns any values from a body form.

func (*Request) BodyJSON

func (r *Request) BodyJSON() (map[string]interface{}, error)

BodyJSON parses and returns a map of values from the body.

func (*Request) PathArgs

func (r *Request) PathArgs() (map[string]string, error)

PathArgs extracts all Goji path variables from the request context.

func (*Request) QueryArgs

func (r *Request) QueryArgs() (url.Values, error)

QueryArgs pulls the standard query args from the request.

Jump to

Keyboard shortcuts

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