handlers

package
v0.0.0-...-61175eb Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	// contains filtered or unexported fields
}

func (*Count) HandleRequest

func (c *Count) HandleRequest(req *web.Request, res *web.Response)

type Delete

type Delete struct{}

func (*Delete) HandleRequest

func (d *Delete) HandleRequest(req *web.Request, res *web.Response)

Usage: curl -X DELETE http://localhost:8688/delete

type Handler404

type Handler404 struct{}

func (*Handler404) HandleRequest

func (h404 *Handler404) HandleRequest(req *web.Request, res *web.Response)

type Hello

type Hello struct{}

func (*Hello) HandleRequest

func (h *Hello) HandleRequest(req *web.Request, res *web.Response)

type JSON

type JSON struct {
	A, B, C int
	Slice   []string
	Map     map[string][]int
}

func (*JSON) HandleRequest

func (j *JSON) HandleRequest(req *web.Request, res *web.Response)

type Patch

type Patch struct{}

func (*Patch) HandleRequest

func (p *Patch) HandleRequest(req *web.Request, res *web.Response)

Usage: curl -X PATCH -d "patchValue=HelloPatch" http://localhost:8688/patch

type PostForm

type PostForm struct{}

func (*PostForm) HandleRequest

func (pf *PostForm) HandleRequest(req *web.Request, res *web.Response)

type PostUpload

type PostUpload struct{}

func (*PostUpload) HandleRequest

func (pu *PostUpload) HandleRequest(req *web.Request, res *web.Response)

type PutForm

type PutForm struct{}

func (*PutForm) HandleRequest

func (put *PutForm) HandleRequest(req *web.Request, res *web.Response)

Usage: curl -X PUT -d "putValue=HelloPut" http://localhost:8688/put_form

type UserColon

type UserColon struct{}

func (*UserColon) HandleRequest

func (user *UserColon) HandleRequest(req *web.Request, res *web.Response)

type View

type View struct{}

func (*View) HandleRequest

func (v *View) HandleRequest(req *web.Request, res *web.Response)

Jump to

Keyboard shortcuts

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