Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestFile ¶
type RequestParams ¶
type RequestParams struct { Values map[string][]string `json:"values"` Files map[string][]RequestFile `json:"files"` }
RequestParams represents simplified HTTP form data: string values and files.
func New ¶
New creates JSON-able RequestParams structure from the given http request. All form files are stored as temporary files, so the caller is responsible for cleaning those up, see RemoveFiles.
func (*RequestParams) FormFileName ¶
func (rp *RequestParams) FormFileName(name string) string
FormFileName returns name of the temporary file
func (*RequestParams) FormValue ¶
func (rp *RequestParams) FormValue(name string) string
func (*RequestParams) RemoveFiles ¶
func (rp *RequestParams) RemoveFiles()
RemoveFiles removes all files saved as part of request params
Click to show internal directories.
Click to hide internal directories.