Discover Packages
github.com/bww/go-rest/v2
httputil
package
Version:
v2.6.0
Opens a new window with list of versions in this module.
Published: Nov 16, 2024
License: BSD-3-Clause
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
func Unmarshal(req *router.Request, entity interface{}, opts ...Option ) error
Unmarshal requests with common entity types
func UnmarshalWithConfig(req *router.Request, entity interface{}, conf Config ) error
Unmarshal requests with common entity types:
application/json
application/x-www-form-urlencoded
multipart/form-data
type Config struct {
MaxMem int64
}
The maximum amount of memory that is permitted to buffer input data
per request before it is offloaded to temporary disk storage. This is
mainly only relevant to multipart file data.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.