Writer

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island, macOS
  • Namespace: go.mime.multipart

Instance Methods


constructor

 

constructor

 

Writer()

 

init()

constructor (Writer)

 

constructor(value: Writer)

 

Writer(Writer value)

 

init(_ value: Writer)

Parameters:

  • value:

Boundary

 

method Boundary: string

 

string Boundary()

 

func Boundary() -> string

 

func Boundary() string

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

CreateFormField

 

// .NET, Island, macOS
method CreateFormField(fieldname: string): tuple of (Writer, error)
// .NET Standard 2.0
method CreateFormField(fieldname: string): ValueTuple<Writer, error>

 

// .NET, Island, macOS
(Writer, error) CreateFormField(string fieldname)
// .NET Standard 2.0
ValueTuple<Writer, error> CreateFormField(string fieldname)

 

// .NET, Island, macOS
func CreateFormField(_ fieldname: string) -> (Writer, error)
// .NET Standard 2.0
func CreateFormField(_ fieldname: string) -> ValueTuple<Writer, error>

 

// .NET, Island, macOS
func CreateFormField(fieldname string) (Writer, error)
// .NET Standard 2.0
func CreateFormField(fieldname string) ValueTuple<Writer, error>

Parameters:

  • fieldname:

CreateFormFile

 

// .NET, Island, macOS
method CreateFormFile(fieldname: string; filename: string): tuple of (Writer, error)
// .NET Standard 2.0
method CreateFormFile(fieldname: string; filename: string): ValueTuple<Writer, error>

 

// .NET, Island, macOS
(Writer, error) CreateFormFile(string fieldname, string filename)
// .NET Standard 2.0
ValueTuple<Writer, error> CreateFormFile(string fieldname, string filename)

 

// .NET, Island, macOS
func CreateFormFile(_ fieldname: string, _ filename: string) -> (Writer, error)
// .NET Standard 2.0
func CreateFormFile(_ fieldname: string, _ filename: string) -> ValueTuple<Writer, error>

 

// .NET, Island, macOS
func CreateFormFile(fieldname string, filename string) (Writer, error)
// .NET Standard 2.0
func CreateFormFile(fieldname string, filename string) ValueTuple<Writer, error>

Parameters:

  • fieldname:
  • filename:

CreatePart

 

// .NET, Island, macOS
method CreatePart(header: MIMEHeader): tuple of (Writer, error)
// .NET Standard 2.0
method CreatePart(header: MIMEHeader): ValueTuple<Writer, error>

 

// .NET, Island, macOS
(Writer, error) CreatePart(MIMEHeader header)
// .NET Standard 2.0
ValueTuple<Writer, error> CreatePart(MIMEHeader header)

 

// .NET, Island, macOS
func CreatePart(_ header: MIMEHeader) -> (Writer, error)
// .NET Standard 2.0
func CreatePart(_ header: MIMEHeader) -> ValueTuple<Writer, error>

 

// .NET, Island, macOS
func CreatePart(header MIMEHeader) (Writer, error)
// .NET Standard 2.0
func CreatePart(header MIMEHeader) ValueTuple<Writer, error>

Parameters:

  • header:

FormDataContentType

 

method FormDataContentType: string

 

string FormDataContentType()

 

func FormDataContentType() -> string

 

func FormDataContentType() string

SetBoundary

 

method SetBoundary(boundary: string): error

 

error SetBoundary(string boundary)

 

func SetBoundary(_ boundary: string) -> error

 

func SetBoundary(boundary string) error

Parameters:

  • boundary:

WriteField

 

method WriteField(fieldname: string; value: string): error

 

error WriteField(string fieldname, string value)

 

func WriteField(_ fieldname: string, _ value: string) -> error

 

func WriteField(fieldname string, value string) error

Parameters:

  • fieldname:
  • value: