Versions in this module Expand all Collapse all v0 v0.9.1 Feb 9, 2018 Changes in this version + func IsUnknownEncoding(err error) bool + type Entity struct + Body io.Reader + Header Header + func New(header Header, body io.Reader) (*Entity, error) + func NewMultipart(header Header, parts []*Entity) (*Entity, error) + func Read(r io.Reader) (*Entity, error) + func (e *Entity) MultipartReader() MultipartReader + func (e *Entity) WriteTo(w io.Writer) error + type Header map[string][]string + func (h Header) Add(key, value string) + func (h Header) ContentDescription() (string, error) + func (h Header) ContentDisposition() (disp string, params map[string]string, err error) + func (h Header) ContentType() (t string, params map[string]string, err error) + func (h Header) Del(key string) + func (h Header) Get(key string) string + func (h Header) Set(key, value string) + func (h Header) SetContentDescription(desc string) + func (h Header) SetContentDisposition(disp string, params map[string]string) + func (h Header) SetContentType(t string, params map[string]string) + type MultipartReader interface + NextPart func() (*Entity, error) + type Writer struct + func CreateWriter(w io.Writer, header Header) (*Writer, error) + func (w *Writer) Close() error + func (w *Writer) CreatePart(header Header) (*Writer, error) + func (w *Writer) Write(b []byte) (int, error)