httpclient

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package httpclient implement tel http.client wrapper which help to handle error The most important approach: perform logs by itself

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Get(_ctx context.Context, url string) (resp *http.Response, err error)
	Post(_ctx context.Context, url, contentType string, body []byte) (resp *http.Response, err error)
	PostForm(ctx context.Context, url string, data url.Values) (resp *http.Response, err error)
}

func New

func New(ca []byte) Interface

Jump to

Keyboard shortcuts

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