httpclient

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type HttpClient

type HttpClient struct {
}
var Handler HttpClient

func (*HttpClient) Get

func (hc *HttpClient) Get(ctx context.Context, url string) (*http.Response, []byte, error)

Get http get

func (*HttpClient) Post

func (hc *HttpClient) Post(ctx context.Context, url string, jsonBytes []byte, timeout time.Duration, headers map[string]string) (*http.Response, []byte, error)

Post http post

Jump to

Keyboard shortcuts

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