server

package
v1.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 8 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, fileFieldName string, fileName 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, fileFieldName string, file 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