multipart

package
v0.23.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 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 Multipart

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

Multipart builds replayable multipart request bodies.

func NewMultipart

func NewMultipart(kvs []core.KeyVal[string]) *Multipart

NewMultipart returns a Multipart using the provided key/values.

func (*Multipart) ContentType

func (m *Multipart) ContentType() string

ContentType returns the Content-Type header value to use for this request.

func (*Multipart) Open added in v0.23.4

func (m *Multipart) Open() (io.ReadCloser, error)

Open returns a fresh multipart request body stream.

Jump to

Keyboard shortcuts

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