server

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFileRequest

func BuildFileRequest(url string, fieldData map[string]string, fileFieldData map[string]string) (*http.Request, error)

BuildFileRequest - Create a multi-part form request adding a file as a parameter

func ProcessRequest

func ProcessRequest(endpoint string, uploadOptions map[string]string, fileFieldData map[string]string, timeout int) error

ProcessRequest - Builds and sends file requests to the API

func SendRequest

func SendRequest(request *http.Request, timeout int) (*http.Response, error)

SendRequest - Sends request

Types

This section is empty.

Jump to

Keyboard shortcuts

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