Home | History | Annotate | Download | only in multipart

Lines Matching defs:Part

33 // A Part represents a single part in a multipart body.
34 type Part struct {
63 func (p *Part) FormName() string {
75 // FileName returns the filename parameter of the Part's
77 func (p *Part) FileName() string {
84 func (p *Part) parseContentDisposition() {
128 func newPart(mr *Reader) (*Part, error) {
129 bp := &Part{
145 func (bp *Part) populateHeaders() error {
154 // Read reads the body of a part, after its headers and before the
155 // next part (if any) begins.
156 func (p *Part) Read(d []byte) (n int, err error) {
161 // wrapped *Part, without doing any Transfer-Encoding decoding.
163 p *Part
184 // Read out from "data to return" part of buffer.
202 // returned as part of the Part body.
209 // returned as part of the Part body and also the error to return (if any)
244 // Otherwise, anything up to the final \n is not part of the boundary
245 // and so must be part of the body.
247 // it too must be part of the body.
280 func (p *Part) Close() error {
291 currentPart *Part
300 // NextPart returns the next part in the multipart or an error.
302 func (r *Reader) NextPart() (*Part, error) {
339 return nil, fmt.Errorf("multipart: expecting a new Part; got line %q", string(line))
348 // body of the previous part and the boundary line we
349 // now expect will follow. (either a new part or the
385 // On the first part, see our lines are ending in \n instead of \r\n