multipart

package
v0.0.0-...-58f8293 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package multipart GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapFileHeader

func WrapFileHeader(r io.ReadCloser, fns ...OptionFunc) courierhttp.FileHeader

Types

type FormPartWriter

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

func NewFormPartWriter

func NewFormPartWriter(createPartWriter func(header textproto.MIMEHeader) (io.Writer, error)) *FormPartWriter

func (*FormPartWriter) Header

func (w *FormPartWriter) Header() http.Header

func (*FormPartWriter) NextWriter

func (w *FormPartWriter) NextWriter() io.Writer

func (*FormPartWriter) Write

func (w *FormPartWriter) Write(p []byte) (n int, err error)

type OptionFunc

type OptionFunc = func(params map[string]string)

func WithFilename

func WithFilename(filename string) OptionFunc

func WithName

func WithName(name string) OptionFunc

Jump to

Keyboard shortcuts

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