Versions in this module Expand all Collapse all v0 v0.1.2 Apr 26, 2023 v0.1.1 Apr 14, 2023 Changes in this version type Entity + Raw io.Reader v0.1.0 Mar 31, 2023 Changes in this version + var CharsetReader func(charset string, input io.Reader) (io.Reader, error) + func IsUnknownCharset(err error) bool + 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 ReadWithOptions(r io.Reader, opts *ReadOptions) (*Entity, error) + func (e *Entity) MultipartReader() MultipartReader + func (e *Entity) Walk(walkFunc WalkFunc) error + func (e *Entity) WriteTo(w io.Writer) error + type Header struct + func HeaderFromMap(m map[string][]string) Header + 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) Copy() Header + func (h *Header) Fields() HeaderFields + func (h *Header) FieldsByKey(k string) HeaderFields + func (h *Header) SetContentDisposition(disp string, params map[string]string) + func (h *Header) SetContentType(t string, params map[string]string) + func (h *Header) SetText(k, v string) + func (h *Header) Text(k string) (string, error) + type HeaderFields interface + Text func() (string, error) + type MultipartReader interface + NextPart func() (*Entity, error) + type ReadOptions struct + MaxHeaderBytes int64 + type UnknownCharsetError struct + func (u UnknownCharsetError) Error() string + func (u UnknownCharsetError) Unwrap() error + type UnknownEncodingError struct + func (u UnknownEncodingError) Error() string + func (u UnknownEncodingError) Unwrap() error + type WalkFunc func(path []int, entity *Entity, err error) 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)