Add HTTP request helpers to the API client.
Drop a superfluous error return.
Add some doc comments.
Fix up a few error messages.
Use path.Join instead of fmt.Sprintf.
Drop support for insecure HTTP clients.
Add tests.
Add a doc comment.
GetHTTPClient -> NewHTTPClient.
Doer -> HTTPClient.
HandleHTTPFailure -> CheckHTTPResponse.
Simplify fake error handling.
Fix a doc comment.
Split out an HTTPRequestBuilder interface.
Fix a typo.
Move as much API HTTP code as possible into its own package.
CheckResponse -> ExtractAPIError.
Limit TLS scope via the server name.
Add tests for ExtractAPIError.
Drop unnecessary types.