mattbaird/gochimp — pull request #4 by shazow (2013-09-09 21:21:41+00:00)
Title: Allow http Transport override (enables support for AppEngine)

This adds a `Transport` field to the `*API` structs, which can be overridden.

I didn't add a quick constructor option for it because it's a fairly rare edge case.

Ideally I feel the constructor doesn't need to exist; could have a `(a* MandrillAPI) func GetEndpoint() string` which returns the constructed endpoint, or have it be a public `Endpoint` value which gets defaulted to a global const if nil.