http_util

package
v0.0.0-...-440800f Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindWithApiRequest

func BindWithApiRequest(r *http.Request, req HttpApiMethod) error

func GetUploadFile

func GetUploadFile(c *http.Request, key string) (fileName string, file []byte, err error)

Types

type HttpApiMethod

type HttpApiMethod interface {
	NewRequest() HttpApiRequest
	Decode2(c *http.Request, contentType string, r HttpApiRequest) (err error)
}

type HttpApiRequest

type HttpApiRequest interface {
	Method() string
}

Jump to

Keyboard shortcuts

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