rest

package
v0.5.3-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Head(url, token string) error

Head sends a HEAD request to the given URL and returns an error if the request fails

func Post

func Post(url string, body, responseModel any) error

Post sends a POST request to the given URL with the given body and decodes the response into the given response model.

Types

This section is empty.

Jump to

Keyboard shortcuts

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