Versions in this module Expand all Collapse all v0 v0.16.1 Jan 14, 2021 v0.16.0 Jan 14, 2021 Changes in this version + func WriteHeader(w io.Writer, h Header) error + type Header struct + func ReadHeader(r *bufio.Reader) (Header, error) + func (h *Header) Add(k, v string) + func (h *Header) AddRaw(kv []byte) + func (h *Header) Copy() Header + func (h *Header) Del(k string) + func (h *Header) Fields() HeaderFields + func (h *Header) FieldsByKey(k string) HeaderFields + func (h *Header) Get(k string) string + func (h *Header) Has(k string) bool + func (h *Header) Len() int + func (h *Header) Raw(k string) ([]byte, error) + func (h *Header) Set(k, v string) + func (h *Header) Values(k string) []string + type HeaderFields interface + Del func() + Key func() string + Len func() int + Next func() (more bool) + Raw func() ([]byte, error) + Value func() string + type MultipartReader struct + func NewMultipartReader(r io.Reader, boundary string) *MultipartReader + func (r *MultipartReader) NextPart() (*Part, error) + type MultipartWriter struct + func NewMultipartWriter(w io.Writer) *MultipartWriter + func (w *MultipartWriter) Boundary() string + func (w *MultipartWriter) Close() error + func (w *MultipartWriter) CreatePart(header Header) (io.Writer, error) + func (w *MultipartWriter) SetBoundary(boundary string) error + type Part struct + Header Header + func (p *Part) Close() error + func (p *Part) Read(d []byte) (n int, err error)