jakiro_http

package
v0.0.0-...-5afe843 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2015 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPContext

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

func NewHTTPContext

func NewHTTPContext(writer http.ResponseWriter, request *http.Request) *HTTPContext

func (*HTTPContext) Body

func (ctx *HTTPContext) Body() []byte

func (*HTTPContext) Error

func (ctx *HTTPContext) Error(code int, err error)

func (*HTTPContext) JSON

func (ctx *HTTPContext) JSON(code int, object interface{})

func (*HTTPContext) Params

func (ctx *HTTPContext) Params() map[string]string

func (*HTTPContext) Write

func (ctx *HTTPContext) Write(code int, response []byte)

type HTTPErrorResponse

type HTTPErrorResponse struct {
	Errors []jakiro.ContextError `json:"errors"`
}

Jump to

Keyboard shortcuts

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