Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = func(err error) error { return fmt.Errorf("pipe is closed before writing %s", err) }
Functions ¶
This section is empty.
Types ¶
type MultipartReader ¶
type MultipartReader struct {
// contains filtered or unexported fields
}
func NewMultipartReader ¶
func NewMultipartReader(src ReadSeekCloser, parts []*Part) (*MultipartReader, error)
func NewMultipartReaderWithBoudary ¶
func NewMultipartReaderWithBoudary(src ReadSeekCloser, parts []*Part, boundary string) (*MultipartReader, error)
func (*MultipartReader) Close ¶
func (mr *MultipartReader) Close() error
func (*MultipartReader) ContentLength ¶
func (mr *MultipartReader) ContentLength() int64
func (*MultipartReader) SetOutputHeaders ¶
func (mr *MultipartReader) SetOutputHeaders(val bool)
func (*MultipartReader) Start ¶
func (mr *MultipartReader) Start()
type ReadSeekCloser ¶
TODO: this is introduced in Go 1.16
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
func NewTransformer ¶
func NewTransformer(src ReadSeekCloser, parts []*Part) *Transformer
func NewTransformerWithBoundary ¶
func NewTransformerWithBoundary(src ReadSeekCloser, parts []*Part, boundary string) *Transformer
func (*Transformer) ContentLength ¶
func (tfm *Transformer) ContentLength() int64
func (*Transformer) SetBoundary ¶
func (tfm *Transformer) SetBoundary(boundary string)
func (*Transformer) WriteMultiParts ¶
func (tfm *Transformer) WriteMultiParts(wt io.Writer) error
func (*Transformer) WritePartHeader ¶
func (tfm *Transformer) WritePartHeader(buf io.Writer, part *Part) error
Click to show internal directories.
Click to hide internal directories.