multipartreader

package
v0.0.0-...-e1fd43b Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package multipartreader helps you encode large files in MIME multipart format without reading the entire content into memory.

Index

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

func (*MultipartReader) Len

func (mr *MultipartReader) Len() int64

Len 返回表单内容总长度

func (*MultipartReader) Read

func (mr *MultipartReader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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