Versions in this module Expand all Collapse all v0 v0.2.0 Dec 16, 2015 v0.1.0 Sep 3, 2015 Changes in this version + func BasicAuth(r *http.Request) (username, password string, ok bool) + func Cacheable(hdr http.Header) (time.Duration, bool, error) + func CopyRequest(r *http.Request) *http.Request + func MergeQuery(u url.URL, q url.Values) url.URL + func NewResourceLocation(reqURL *url.URL, id string) string + func WriteError(w http.ResponseWriter, code int, msg string) + type Client interface + Do func(*http.Request) (*http.Response, error) + type HandlerClient struct + Handler http.Handler + func (hc *HandlerClient) Do(r *http.Request) (*http.Response, error) + type RequestRecorder struct + Error error + Request *http.Request + Response *http.Response + func (rr *RequestRecorder) Do(req *http.Request) (*http.Response, error) + func (rr *RequestRecorder) RoundTrip(req *http.Request) (*http.Response, error)