package
0.0.0-20190628093746-affaa533fc2e
Repository: https://github.com/szymongib/kyma.git
Documentation: pkg.go.dev

# Functions

DefaultHTTPClientProvider returns a default HTTPClient implementation.
DefaultHTTPRequestProvider returns a default http.Request with the given method, url and body.
RequestLogger creates an http.Handler function with a default info logger.
RespondWithBody sends http response with json body.
RespondWithErrorAndLog logs error and sends http response with error json body.

# Interfaces

An HTTPClient represents an interface type of HTTPClient that encapsulates a 'Do' function which takes an http.Request and returns an http.Response.

# Type aliases

An HTTPClientProvider represents a function type that returns an HTTPClient.
An HTTPRequestProvider represents a function type that returns an http.Request.