Lines Matching refs:Form
20 // a Content-Disposition of "form-data".
23 func (r *Reader) ReadForm(maxMemory int64) (*Form, error) {
27 func (r *Reader) readForm(maxMemory int64) (_ *Form, err error) {
28 form := &Form{make(map[string][]string), make(map[string][]*FileHeader)}
31 form.RemoveAll()
63 form.Value[name] = append(form.Value[name], b.String())
95 form.File[name] = append(form.File[name], fh)
98 return form, nil
101 // Form is a parsed multipart form.
106 type Form struct {
111 // RemoveAll removes any temporary files associated with a Form.
112 func (f *Form) RemoveAll() error {