podafButter

A library that 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

ButterDish

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

ButterRequest

The HTTP request.

ButterResponse

The HTTP response.

ErrOn5xxMiddleware

Middleware that throws a ServerErr when a HTTP response returns a 5xx status code, indicating a server error.

FollowRedirectsMiddleware

Middleware that automatically resubmits requests on redirect responses.

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

A middleware terminator for making real HTTP requests.

OpenAuthMiddleware

(Bonus!) Middleware for signing HTTP requests as per the OAuth Protocol 1.0a.

QualityValues

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

StickyCookiesMiddleware

Middleware that stores cookies found in response objects, and automatically sets them in subsequent requests.

StickyHeadersMiddleware

Middleware that automatically sets headers in each request, so you don't have to!

Errs

ButterErr

As thrown by Butter.

ServerErr

Throw by ErrOn5xxMiddleware when a HTTP response returns a 5xx status code.