http

package module
v0.0.0-...-b741388 Latest Latest
Warning

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

Go to latest
Published: May 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package http to define utils function for http

Index

Constants

View Source
const (
	// ConnectMaxWaitTime to have a connection limit time
	ConnectMaxWaitTime = 20 * time.Second
	// RequestMaxWaitTime to have a request limit time
	RequestMaxWaitTime = 300 * time.Second
)

Variables

This section is empty.

Functions

func GetQuery

func GetQuery(ctx context.Context, url string, params, headers map[string]string) (resp []byte, err error)

GetQuery to send Get http request

func PostQuery

func PostQuery(ctx context.Context, url string, body []byte, params, headers map[string]string) (respCode int, err error)

PostQuery to send Post http request

Types

This section is empty.

Jump to

Keyboard shortcuts

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