Table of Contents

Class Multipart

Namespace
Soup
Assembly
Soup-3.0.dll
public sealed class Multipart : BoxedRecord, IEquatable<Multipart>
Inheritance
Multipart
Implements
Inherited Members

Constructors

Multipart(MultipartOwnedHandle)

public Multipart(MultipartOwnedHandle handle)

Parameters

handle MultipartOwnedHandle

Properties

Handle

public MultipartOwnedHandle Handle { get; }

Property Value

MultipartOwnedHandle

Methods

AppendFormFile(string, string?, string?, Bytes)

public void AppendFormFile(string controlName, string? filename, string? contentType, Bytes body)

Parameters

controlName string
filename string
contentType string
body Bytes

AppendFormString(string, string)

public void AppendFormString(string controlName, string data)

Parameters

controlName string
data string

AppendPart(MessageHeaders, Bytes)

public void AppendPart(MessageHeaders headers, Bytes body)

Parameters

headers MessageHeaders
body Bytes

Equals(Multipart?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Multipart? other)

Parameters

other Multipart

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetLength()

public int GetLength()

Returns

int

New(string)

public static Multipart New(string mimeType)

Parameters

mimeType string

Returns

Multipart

NewFromMessage(MessageHeaders, Bytes)

public static Multipart? NewFromMessage(MessageHeaders headers, Bytes body)

Parameters

headers MessageHeaders
body Bytes

Returns

Multipart