httpclient

package
v0.0.0-...-5886a04 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHttpClient

func DefaultHttpClient() *http.Client

func GET

func GET[T any](url string, modifier ...Modifier) (*T, error)

func POST

func POST[T any](url string, data any, modifier ...Modifier) (*T, error)

func URL

func URL(base string, query map[string]string) (string, error)

Types

type Modifier

type Modifier func(client *http.Client, req *http.Request)

Jump to

Keyboard shortcuts

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