api

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicGet

func BasicGet(
	httpURL,
	method,
	authType,
	bearerToken,
	basicAuthUsername,
	basicAuthPassword string,
	isCommand bool,
	headersCount int,
	headersForm *tview.Form,
) (string, string, string, error)

BasicGet sends a simple GET request to the url with any potential parameters like `Tokens` or `Basic Auth`

func BasicRequestWithBody

func BasicRequestWithBody(
	httpURL,
	method,
	contentType,
	reqBody,
	authType,
	baererToken,
	basicAuthUsername,
	basicAuthPassword string,
	isCommand bool,
	headersCount int,
	headersForm *tview.Form,
) (string, string, string, error)

BasicRequestWithBody sends put|patch|post|delete requests

func GetLatest added in v0.1.6

func GetLatest() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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