Versions in this module Expand all Collapse all v1 v1.0.0 Dec 5, 2022 Changes in this version + const CR + const CRLF + const FoldIndent + const ForcedFoldLength + const LF + const LFCR + const PreferredFoldLength + func FoldValue(f, lb []byte) []byte + func MakeHeaderFieldMatch(n string) string + func UnfoldValue(f []byte) []byte + type Body struct + func NewBody(content []byte) *Body + func (m *Body) Bytes() []byte + func (m *Body) Content() []byte + func (m *Body) ContentString() string + func (m *Body) SetContent(c []byte) + func (m *Body) SetContentString(s string) + func (m *Body) String() string + type Header struct + Fields []*HeaderField + func NewHeader(lb string, f ...*HeaderField) *Header + func (h *Header) Break() []byte + func (h *Header) Bytes() []byte + func (h *Header) HeaderFieldIndex(n string, ix int, fb bool) int + func (h *Header) HeaderGetAllFields(n string) []*HeaderField + func (h *Header) HeaderGetField(n string) *HeaderField + func (h *Header) HeaderGetFieldN(n string, ix int) (*HeaderField, error) + func (h *Header) String() string + type HeaderField struct + func NewHeaderField(n, b string, lb []byte) *HeaderField + func NewHeaderFieldParsed(n, b string, original []byte) *HeaderField + func (f *HeaderField) Body() string + func (f *HeaderField) Bytes() []byte + func (f *HeaderField) CacheGet(k string) interface{} + func (f *HeaderField) CacheSet(k string, v interface{}) + func (f *HeaderField) Match() string + func (f *HeaderField) Name() string + func (f *HeaderField) Original() []byte + func (f *HeaderField) RawBody() []byte + func (f *HeaderField) SetBody(b string, lb []byte) + func (f *HeaderField) SetBodyEncoded(sb string, bb []byte, lb []byte) + func (f *HeaderField) SetBodyEncodedNoFold(sb string, bb []byte) + func (f *HeaderField) SetBodyNoFold(b string, lb []byte) + func (f *HeaderField) SetName(n string, lb []byte) + func (f *HeaderField) SetNameNoFold(n string) + func (f *HeaderField) String() string + type Message struct + func NewMessage(h *Header, body []byte) *Message + func (m *Message) Bytes() []byte + func (m *Message) String() string