Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v0.6.0
type Attachment struct {
// contains filtered or unexported fields
}
Attachment is a wrapper for io.Reader, with the difference that there is the size attribute. If positive value (including 0) is set, then ordinary plain-text response will be rendered. Otherwise, chunked transfer encoding is used.
func NewAttachment ¶ added in v0.6.0
func NewAttachment(content io.Reader, size int) Attachment
NewAttachment returns a new Attachment instance
func (Attachment) Content ¶ added in v0.6.0
func (a Attachment) Content() io.Reader
func (Attachment) Size ¶ added in v0.6.0
func (a Attachment) Size() int
type DefaultHeaders ¶
type DefaultHeaders []string
func (DefaultHeaders) Copy ¶
func (d DefaultHeaders) Copy(into []string)
func (DefaultHeaders) EraseEntry ¶
func (d DefaultHeaders) EraseEntry(key string)
EraseEntry nulls key in case it is presented, if not - nothing happens
Click to show internal directories.
Click to hide internal directories.