batchrequests

package module
v0.0.0-...-d4f7dc1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2015 License: MIT Imports: 8 Imported by: 0

README

batchrequests

A Golang library to batch serveral operations into a single HTTP request

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(batchPattern string, handler http.Handler) http.Handler

Types

type BatchRequest

type BatchRequest struct {
	Method string
	URL    string
	Body   string
}

type BatchRequestHandler

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

func (*BatchRequestHandler) ServeHTTP

func (brh *BatchRequestHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type BatchResponse

type BatchResponse struct {
	Code    int
	Headers http.Header
	Body    string
}

Directories

Path Synopsis
_examples

Jump to

Keyboard shortcuts

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