http

package
v0.0.0-...-5b94c7c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*http.Client
}

Client is a wrapper to factorize http calls

func NewClient

func NewClient(debug bool) *Client

func (Client) DoOnlyOk

func (c Client) DoOnlyOk(request *http.Request) (*http.Response, error)

DoOnlyOk invokes http.Client.Do and return http.Response only if response status code is OK

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL