sghttp

package
v1.9.9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileMaxSize

func CheckFileMaxSize(w http.ResponseWriter, r *http.Request, maxSize int64) error

maxSize KB

func GetFileDetectContentType

func GetFileDetectContentType(file multipart.File) (string, error)

func PostFile

func PostFile(filename string, target_url string, formName string) (*http.Response, error)

formName is for server to get file by r.FormFile(formName)

func PostMultiFormFile

func PostMultiFormFile(url string, formMap map[string]string, values map[string]string) (*http.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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