mirror of
https://github.com/openshift/source-to-image.git
synced 2026-02-05 12:44:54 +01:00
Change details: Use newer ctor for docker client, the ctor negotiates API so it works also with older version of daemon. The ability to force API version via DOCKER_API_VERSION is preserved. Signed-off-by: Matej Vašek <mvasek@redhat.com>
11 lines
392 B
Go
11 lines
392 B
Go
// Package httpsnoop provides an easy way to capture http related metrics (i.e.
|
|
// response time, bytes written, and http status code) from your application's
|
|
// http.Handlers.
|
|
//
|
|
// Doing this requires non-trivial wrapping of the http.ResponseWriter
|
|
// interface, which is also exposed for users interested in a more low-level
|
|
// API.
|
|
package httpsnoop
|
|
|
|
//go:generate go run codegen/main.go
|