apihandler

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APICall

type APICall struct {
	URL      string
	Method   string
	Header   map[string]string
	Body     []byte
	Insecure bool
	Cookie   *http.Cookie
}

APICall is a type that holds all necessary info for an API call

func (APICall) Exec

func (a APICall) Exec(i any) (statuscode int, errormessage any, err error)

Exec executes the underlying API Call and returns the resulting statuscode and error if any occurred

Jump to

Keyboard shortcuts

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