var ErrMessageTooLarge … // ReadForm parses an entire multipart message whose parts have // a Content-Disposition of "form-data". // It stores up to maxMemory bytes + 10MB (reserved for non-file parts) // in memory. File parts which can't be stored in memory will be stored on // disk in temporary files. // It returns [ErrMessageTooLarge] if all non-file parts can't be stored in // memory. func (r *Reader) ReadForm(maxMemory int64) (*Form, error) { … } var multipartfiles … var multipartmaxparts … func (r *Reader) readForm(maxMemory int64) (_ *Form, err error) { … } func mimeHeaderSize(h textproto.MIMEHeader) (size int64) { … } type Form … // RemoveAll removes any temporary files associated with a [Form]. func (f *Form) RemoveAll() error { … } type FileHeader … // Open opens and returns the [FileHeader]'s associated File. func (fh *FileHeader) Open() (File, error) { … } type File … type sectionReadCloser … func (rc sectionReadCloser) Close() error { … }