request

package
v0.0.0-...-94e4715 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(endpoint string, token string, url string, header http.Header, body jsonutils.JSONObject) (jsonutils.JSONObject, error)

func Get

func Get(endpoint string, token string, url string, header http.Header, body jsonutils.JSONObject) (jsonutils.JSONObject, error)

func GetDefaultHeader

func GetDefaultHeader(header http.Header, token string) http.Header

func JSONRequest

func JSONRequest(endpoint string, token string, method string, url string, header http.Header, body jsonutils.JSONObject) (jsonutils.JSONObject, error)

func JoinUrl

func JoinUrl(baseUrl, path string) string

func Post

func Post(endpoint string, token string, url string, header http.Header, body jsonutils.JSONObject) (jsonutils.JSONObject, error)

func Put

func Put(endpoint string, token string, url string, header http.Header, body jsonutils.JSONObject) (jsonutils.JSONObject, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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