whttp

package
v0.0.0-...-b520b79 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultClient

func GetDefaultClient() *retryablehttp.Client

func SetupProxy

func SetupProxy(proxyURL string) error

Types

type WHTTPHeader

type WHTTPHeader struct {
	Name  string
	Value string
}

type WHTTPReq

type WHTTPReq struct {
	URL        string
	Method     string
	Body       string
	CustomHost string
	Headers    []WHTTPHeader
}

type WHTTPRes

type WHTTPRes struct {
	StatusCode     int
	ResponseLength int
	HTTPTitle      string
	BodyString     string
	Headers        http.Header
}

func SendHTTPRequest

func SendHTTPRequest(wReq *WHTTPReq, customClient *retryablehttp.Client) (wRes *WHTTPRes, err error)

Jump to

Keyboard shortcuts

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