split

package
v0.0.0-...-2c9130b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidMediaType = fmt.Errorf("Invalid media type, it should be multipart/mixed with boundary parameter")

ErrInvalidMediaType is returned when the media type is not multipart/mixed with boundary param set

View Source
var ErrMalformedMediaType = fmt.Errorf("Malformed media type")

ErrMalformedMediaType is returned when the media type cannot be parsed

View Source
var ErrMalformedRequest = fmt.Errorf("Invalid request part format")

ErrMalformedRequest is returned when a part can be read into a http.Request

Functions

func UnpackRequests

func UnpackRequests(r *http.Request) ([]*http.Request, error)

UnpackRequests split the multipart requests in its sub-requests

func WriteResponses

func WriteResponses(w http.ResponseWriter, responses []*http.Response) error

WriteResponses serialize the responses passed as argument into the ResponseWriter

Types

This section is empty.

Jump to

Keyboard shortcuts

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