body

package
v0.0.0-...-f39c695 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body interface {
	// Type returns the body type
	Type() string

	IsEmpty() bool

	Encode() io.ReadCloser

	SetItem(k string, v interface{}) error

	Set(v interface{}) error
}

type BodyBytes

type BodyBytes struct {
	// contains filtered or unexported fields
}

func (*BodyBytes) Encode

func (body *BodyBytes) Encode() io.ReadCloser

func (*BodyBytes) IsEmpty

func (body *BodyBytes) IsEmpty() bool

func (*BodyBytes) Set

func (body *BodyBytes) Set(v interface{}) error

func (*BodyBytes) SetItem

func (body *BodyBytes) SetItem(k string, v interface{}) error

func (*BodyBytes) Type

func (body *BodyBytes) Type() string

type File

type File struct {
	Name    string
	Content io.Reader
}

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func NewJSON

func NewJSON() *JSON

func (*JSON) Encode

func (body *JSON) Encode() io.ReadCloser

func (*JSON) IsEmpty

func (body *JSON) IsEmpty() bool

func (*JSON) Set

func (body *JSON) Set(value interface{}) error

func (*JSON) SetItem

func (body *JSON) SetItem(k string, v interface{}) error

func (*JSON) Type

func (body *JSON) Type() string

type Multipart

type Multipart struct {
	// contains filtered or unexported fields
}

func NewMultipart

func NewMultipart() *Multipart

func (*Multipart) Encode

func (body *Multipart) Encode() io.ReadCloser

func (*Multipart) IsEmpty

func (body *Multipart) IsEmpty() bool

func (*Multipart) Set

func (body *Multipart) Set(v interface{}) error

func (*Multipart) SetItem

func (body *Multipart) SetItem(k string, v interface{}) error

func (*Multipart) Type

func (body *Multipart) Type() string

type ReadCloser

type ReadCloser struct {
	io.Reader
}

func (*ReadCloser) Close

func (r *ReadCloser) Close() error

Jump to

Keyboard shortcuts

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