multipart2

package
v0.0.0-...-5335138 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package multipart2 implements MIME multipart parsing for open streams. The built-in mime/multipart package hangs until close, which doesn't work for longlived streams (see https://github.com/golang/go/issues/15431).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Part

type Part struct {
	Header textproto.MIMEHeader
	// contains filtered or unexported fields
}

func (*Part) Close

func (p *Part) Close() error

func (*Part) FileName

func (p *Part) FileName() string

func (*Part) FormName

func (p *Part) FormName() string

func (*Part) Read

func (p *Part) Read(d []byte) (n int, err error)

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r io.Reader, boundary string) *Reader

func (*Reader) NextPart

func (r *Reader) NextPart() (*Part, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL