http

package
v0.0.0-...-efd361b Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToQueryParams

func ConvertToQueryParams(params map[string]interface{}) string

func ConvertToQueryParamsRepetition

func ConvertToQueryParamsRepetition(params []QueryParameter) string

func Delete

func Delete(url string, params map[string]interface{}, body string, headerOptions ...HeaderOption) (string, error)

func DeleteRequest

func DeleteRequest(url string, body string, headerOptions ...HeaderOption) (string, error)

func DoPost

func DoPost(url string, jstr []byte) ([]byte, error)

func Get

func Get(url string, params map[string]interface{}, headerOptions ...HeaderOption) (string, error)

func GetRepetition

func GetRepetition(url string, params []QueryParameter, headerOptions ...HeaderOption) (string, error)

func GetRequest

func GetRequest(url string, headerOptions ...HeaderOption) (string, error)

func Patch

func Patch(url string, params map[string]interface{}, body string, headerOptions ...HeaderOption) (string, error)

func PatchRequest

func PatchRequest(url string, body string, headerOptions ...HeaderOption) (string, error)

func Post

func Post(url string, params map[string]interface{}, body string, headerOptions ...HeaderOption) (string, error)

func PostRepetition

func PostRepetition(url string, params []QueryParameter, body string, headerOptions ...HeaderOption) (string, error)

func PostRequest

func PostRequest(url string, body string, headerOptions ...HeaderOption) (string, error)

Types

type HeaderOption

type HeaderOption struct {
	Name  string
	Value string
}

func BuildTokenHeaderOptions

func BuildTokenHeaderOptions(tenantAccessToken string) HeaderOption

type QueryParameter

type QueryParameter struct {
	Key   string
	Value interface{}
}

Jump to

Keyboard shortcuts

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