/httpclient

An interface for Go's standard `http.Client` concrete type

Primary LanguageGoMIT LicenseMIT

Build Status Coverage Status Go Report Card

Description

The httpclient package provides an interface for Go's standard http.Client concrete type. This makes it easier to mock HTTP clients, or wrap them with additional functionality.

Usage

client := httpclient.NewContext(http.DefaultClient)
response, err := client.GetContext(ctx.TODO(), "https://golang.org")