pkg/requestdecorator
Tibor Vass db107e3e2c registry: Refactor requestfactory to use http.RoundTrippers
This patch removes the need for requestFactories and decorators
by implementing http.RoundTripper transports instead.

It refactors some challenging-to-read code.

NewSession now takes an *http.Client that can already have a
custom Transport, it will add its own auth transport by wrapping
it.

The idea is that callers of http.Client should not bother
setting custom headers for every handler but instead it should
be transparent to the callers of a same context.

This patch is needed for future refactorings of registry,
namely refactoring of the v1 client code.

Signed-off-by: Tibor Vass <tibor@docker.com>
2015-05-18 21:51:53 -04:00
..
README.md Refactor utils/http.go, fixes #11899 2015-03-30 17:59:57 +02:00
requestdecorator.go registry: Refactor requestfactory to use http.RoundTrippers 2015-05-18 21:51:53 -04:00
requestdecorator_test.go Removed go1.3.3 support 2015-04-20 23:09:08 +02:00

This package provides helper functions for decorating a request with user agent versions, auth, meta headers.