Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_MEMORY = 32 << 20
)
View Source
const (
MIME_MULTIPART_FORM = "multipart/form-data"
)
View Source
const (
MIME_POST_FORM = "application/x-www-form-urlencoded"
)
Variables ¶
View Source
var ( // ErrConvertMapStringSlice can not covert to map[string][]string ErrConvertMapStringSlice = errors.New("can not convert to map slices of strings") // ErrConvertToMapString can not convert to map[string]string ErrConvertToMapString = errors.New("can not convert to map of strings") )
View Source
var ( // ErrMultiFileHeader multipart.FileHeader invalid ErrMultiFileHeader = errors.New("unsupported field type for multipart.FileHeader") // ErrMultiFileHeaderLenInvalid array for []*multipart.FileHeader len invalid ErrMultiFileHeaderLenInvalid = errors.New("unsupported len of array for []*multipart.FileHeader") )
Functions ¶
func MapFormWithTag ¶
func NewEntityAccessorMultipartForm ¶
func NewEntityAccessorMultipartForm() restful.EntityReaderWriter
NewEntityAccessorJSON returns a new EntityReaderWriter for accessing Form content. This package is already initialized with such an accessor using the MIME_POST_FORM contentType.
func NewEntityAccessorPostForm ¶
func NewEntityAccessorPostForm() restful.EntityReaderWriter
NewEntityAccessorJSON returns a new EntityReaderWriter for accessing Form content. This package is already initialized with such an accessor using the MIME_POST_FORM contentType.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.