types

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL