gokhttp_multipart

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

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

func NewMultiPartWrapper

func NewMultiPartWrapper() *Wrapper

func (*Wrapper) Boundary

func (w *Wrapper) Boundary() string

func (*Wrapper) Close

func (w *Wrapper) Close() error

func (*Wrapper) CreateFormField

func (w *Wrapper) CreateFormField(fieldName string) (io.Writer, error)

func (*Wrapper) CreateFormFile

func (w *Wrapper) CreateFormFile(fieldName, fileName string) (io.Writer, error)

func (*Wrapper) CreatePart

func (w *Wrapper) CreatePart(header textproto.MIMEHeader) (io.Writer, error)

func (*Wrapper) FormDataContentType

func (w *Wrapper) FormDataContentType() string

func (*Wrapper) SetBoundary

func (w *Wrapper) SetBoundary(boundary string) error

func (*Wrapper) WriteField

func (w *Wrapper) WriteField(fieldName, value string) error

func (*Wrapper) Writer

func (w *Wrapper) Writer() *bytes.Buffer

Jump to

Keyboard shortcuts

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