rest

package
v0.0.0-...-aa3f784 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoJsonRequest

func DoJsonRequest(request *http.Request) []byte

func DoRequest

func DoRequest(request *http.Request, contentType string) []byte

func MultiPartForm

func MultiPartForm(jsonData []byte, attachment BinaryAttachment) (*bytes.Buffer, string)

Types

type BinaryAttachment

type BinaryAttachment struct {
	ContentType string
	Name        string
	Filename    string
}

Jump to

Keyboard shortcuts

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