Documentation ¶
Overview ¶
Package MIME implemets parsing of MIME and MIME/multipart messages needed to verfiy multipart/signed messages
Index ¶
- Variables
- type Line
- type Lines
- type MIME
- func (m *MIME) AddHeaderField(key, value []byte)
- func (m *MIME) Body() []byte
- func (m *MIME) DeleteHeaderField(key []byte)
- func (m *MIME) Full(sep ...[]byte) []byte
- func (m *MIME) FullLines() (full Lines)
- func (m *MIME) GetHeaderField(key []byte) (values [][]byte)
- func (m *MIME) Header() []byte
- func (m *MIME) MultipartGetParts() (parts []Lines, err error)
- func (m *MIME) ParseMediaType() (mediatype string, params map[string]string, err error)
- func (m *MIME) SetBody(body []byte)
- func (m *MIME) SetHeaderField(key, value []byte)
- func (m *MIME) SetMultipartBody(contentType string, parts ...MIME)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct { Line []byte // contains filtered or unexported fields }
Line of a MIME message
type MIME ¶
type MIME struct {
// contains filtered or unexported fields
}
A MIME message
func (*MIME) AddHeaderField ¶
Adds a header field to the header of the message
func (*MIME) DeleteHeaderField ¶
Removes a header fild from the header of the message
func (*MIME) GetHeaderField ¶
Gets the header field with the given key
func (*MIME) MultipartGetParts ¶
Get the parts of a multipart Message
func (*MIME) ParseMediaType ¶
Parses the mediatype of the message
func (*MIME) SetHeaderField ¶
Sets the header field with the given key
func (*MIME) SetMultipartBody ¶
SetMultipartBody makes a mulitpart messages with given parts and contentType
Click to show internal directories.
Click to hide internal directories.