thunder

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPClient

func HTTPClient(url string, config Config) (chan *http.Response, chan error)

HTTPClient makes an HTTP request with the provided configuration

Types

type Config

type Config struct {
	Method           string            // HTTP method
	Params           map[string]string // URL parameters
	Headers          map[string]string // Request headers
	JSONPayload      interface{}       // JSON payload data
	FormPayload      map[string]string // Form payload data
	MultipartPayload map[string]string // Multipart/form-data payload data
}

Config holds configuration options for HTTP requests

Jump to

Keyboard shortcuts

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