requests

package
v0.0.0-...-6065391 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURLAsBytes

func GetURLAsBytes(url string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, []byte, error)

GetURLAsBytes will fetch a url, headers, and a bool for ignoring ssl errors. this returns an http response object, the body as a string, and an error

func GetURLAsString

func GetURLAsString(url string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)

GetURLAsString will fetch a url and return an http response object, the body as a string, and an error

func PostBinary

func PostBinary(url string, readPath string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)

PostBinary posts the specified data to a url endpoint as application/octet-stream data

func PostJSON

func PostJSON(url string, data map[string]interface{}, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)

PostJSON takes a url, json data, a map of headers, and a bool to ignore ssl errors, posts json data to url

func PostURL

func PostURL(url string, data string, headers map[string]interface{}, ignoresslerrors bool) (*http.Response, string, error)

PostURL posts the specified data to a url endpoint as text/plain data

Types

This section is empty.

Jump to

Keyboard shortcuts

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