multipart

package module
v0.0.0-...-8f42c52 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 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 struct {
	// contains filtered or unexported fields
}

func Multipart

func Multipart() *Body

func (*Body) Body

func (m *Body) Body() (contentType string, body io.Reader, err error)

func (*Body) File

func (m *Body) File(getFile func() (field, filename string, fileBody io.ReadCloser, err error)) *Body

func (*Body) LocalFile

func (m *Body) LocalFile(field string, filename string) *Body

func (*Body) Params

func (m *Body) Params(params url.Values) *Body

func (*Body) WaitEnd

func (m *Body) WaitEnd(ctx context.Context) error

Jump to

Keyboard shortcuts

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