Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
Header textproto.MIMEHeader
Reader io.Reader
}
Field is a Multipart Fragment that defines would be written in the response
type NextField ¶
type NextField func(reader *OOBMultipartReader, field *Field) (err error)
NextField is a function that returns the next Field
type NoNextFieldError ¶
type NoNextFieldError struct{}
NoNextFieldError is an error that is triggered as soon as the NextField in OOBMultipartReader is nil
func (NoNextFieldError) Error ¶
func (NoNextFieldError) Error() string
type OOBMultipartReader ¶
type OOBMultipartReader struct {
Boundary string
NextField NextField
WrittenFields int
// contains filtered or unexported fields
}
OOBMultipartReader is a io.Reader that generates a multipart stream out of multiple other readers
Click to show internal directories.
Click to hide internal directories.