httpclient

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPDoer

type HTTPDoer interface {
	SubmitMultipart(method, endpoint string, fields map[string]string, files []MultipartFile) error
	SubmitJSON(method, endpoint string, body any) error
}

HTTPDoer is an interface to abstract away the underlying HTTP client logic.

func New

func New(apiBotURL, token, proxyURL string) (HTTPDoer, error)

type MultipartFile

type MultipartFile struct {
	FieldName  string
	FileName   string
	FileReader io.ReadCloser
}

Jump to

Keyboard shortcuts

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