network

package
v0.0.0-...-4b5ade8 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseHeaderKey = ""
View Source
var BaseHeaderValue = ""
View Source
var BaseUrl = "https://api.openai.com"

Functions

func DoDelete

func DoDelete(client *http.Client, bearer, route string) (string, int)

func DoGet

func DoGet(client *http.Client, bearer, route string) (string, int)

func DoHttpLimitRead

func DoHttpLimitRead(client *http.Client, request *http.Request) (string, int, string)

func DoHttpRead

func DoHttpRead(client *http.Client, request *http.Request) (string, int)

func DoHttpZRead

func DoHttpZRead(client *http.Client, request *http.Request, cb func(b []byte),
	max int64)

func DoMultiPartPost

func DoMultiPartPost(bearer, fullRoute string, params map[string]any) (string, int)

func DoPost

func DoPost(client *http.Client, bearer, route string, payload []byte) (string, int)

func DoPut

func DoPut(client *http.Client, bearer, route string, payload []byte) (string, int)

func DoReadZipped

func DoReadZipped(asBytes []byte) string

func Get200Image

func Get200Image(full, bearer string) bool

func GetTo

func GetTo(full, bearer string) (string, int)

func SetHeaders

func SetHeaders(bearer string, request *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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