multipart

package
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Part

type Part interface {
	io.Reader

	// Header returns the headers of the body with the
	// keys canonicalized.
	Header() textproto.MIMEHeader

	// FileName returns the filename parameter of the
	// Content-Disposition header.
	FileName() string

	// FormName returns the name parameter if p has a
	// Content-Disposition of type form-data.
	FormName() string
}

A Part represents a single part in a multipart body.

type Reader

type Reader interface {
	// NextPart returns the next part in the multipart or
	// an error. When there are no more parts, the error
	// io.EOF is returned.
	NextPart() (Part, error)
}

Reader is an iterator over parts in a multipart log stream.

func New

func New(r io.Reader) Reader

New returns a new multipart Reader.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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