podafButter

Helps ease HTTP requests through a stack of middleware

Mixins

Butter

Butter instances route HTTP requests through a stack of middleware.

ButterMiddleware

Implement to define middleware for Butter.

Classes

BasicAuthMiddleware

(Middleware) - Converts user info in the request URL to a BASIC Authentication HTTP header.

Body

Convenience methods for reading and writing content.

ButterDish

Holds an instance of Butter; use to create helper classes that access your middleware.

ButterRequest

The HTTP request.

ButterResponse

The HTTP response.

ErrOn4xxMiddleware

(Middleware) - Throws BadStatusErr when a HTTP response returns a 4xx status code.

ErrOn5xxMiddleware

(Middleware) - Throws BadStatusErr when a HTTP response returns a 5xx status code.

FollowRedirectsMiddleware

(Middleware) - Automatically resubmits requests on redirect responses.

GzipMiddleware

(Middleware) - Automatically un-gzips HTTP response content.

HttpRequestHeaders

A wrapper for HTTP request headers with accessors for commonly used headings.

HttpResponseHeaders

A wrapper for HTTP response headers with accessors for commonly used headings.

HttpTerminator

(Terminator) - A Butter Terminator for making real HTTP requests.

MultipartForm

Represents Multipart Form Data as defined by RFC 2388.

ProxyMiddleware

(Middleware) - Sets a proxy for HTTP sockets to connect via.

QualityValues

Parses a Str of HTTP qvalues as per HTTP 1.1 Spec / rfc2616-sec14.3.

StickyCookiesMiddleware

(Middleware) - Stores cookies found in response objects and sets them in subsequent requests.

StickyHeadersMiddleware

(Middleware) - Automatically sets headers in each request, so you don't have to!

Errs

BadStatusErr

Throw by ErrOnXxxMiddleware when a HTTP response returns a bad status code.

ButterErr

As thrown by Butter.