middleware

package
v0.0.0-...-a9209f1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

* This is yaag middleware for the web apps using the middlewares that supports http handleFunc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After

func After(apiCall *yaag.APICall, writer *httptest.ResponseRecorder, w http.ResponseWriter, r *http.Request)

func Before

func Before(apiCall *yaag.APICall, req *http.Request)

func Handle

func Handle(next func(http.ResponseWriter, *http.Request)) http.Handler

func HandleFunc

func HandleFunc(next func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)

func ReadBody

func ReadBody(req *http.Request) *string

func ReadHeaders

func ReadHeaders(req *http.Request) map[string]string

func ReadHeadersFromResponse

func ReadHeadersFromResponse(writer *httptest.ResponseRecorder) map[string]string

func ReadPostForm

func ReadPostForm(req *http.Request) map[string]string

func ReadQueryParams

func ReadQueryParams(req *http.Request) map[string]string

Types

type YaagHandler

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

func (*YaagHandler) ServeHTTP

func (y *YaagHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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