Documentation ¶
Overview ¶
Package multipartreader helps you encode large files in MIME multipart format without reading the entire content into memory.
Index ¶
- type MultipartReader
- func (mr *MultipartReader) AddFormFeild(fieldname string, readerlen rio.ReaderLen)
- func (mr *MultipartReader) AddFormFile(fieldname, filename string, readerlen64 rio.ReaderLen64)
- func (mr *MultipartReader) CloseMultipart() error
- func (mr *MultipartReader) ContentType() string
- func (mr *MultipartReader) Len() int64
- func (mr *MultipartReader) Read(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultipartReader ¶
type MultipartReader struct {
// contains filtered or unexported fields
}
MultipartReader MIME multipart format
func NewMultipartReader ¶
func NewMultipartReader() (mr *MultipartReader)
NewMultipartReader 返回初始化的 *MultipartReader
func (*MultipartReader) AddFormFeild ¶
func (mr *MultipartReader) AddFormFeild(fieldname string, readerlen rio.ReaderLen)
AddFormFeild 增加 form 表单
func (*MultipartReader) AddFormFile ¶
func (mr *MultipartReader) AddFormFile(fieldname, filename string, readerlen64 rio.ReaderLen64)
AddFormFile 增加 form 文件表单
func (*MultipartReader) CloseMultipart ¶
func (mr *MultipartReader) CloseMultipart() error
CloseMultipart 关闭multipartreader
func (*MultipartReader) ContentType ¶
func (mr *MultipartReader) ContentType() string
ContentType 返回Content-Type
Click to show internal directories.
Click to hide internal directories.