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
Methods
AppendFormFile(string, string?, string?, Bytes)
public void AppendFormFile(string controlName, string? filename, string? contentType, Bytes body)
Parameters
AppendFormString(string, string)
public void AppendFormString(string controlName, string data)
Parameters
AppendPart(MessageHeaders, Bytes)
public void AppendPart(MessageHeaders headers, Bytes body)
Parameters
headers
MessageHeadersbody
Bytes
Equals(Multipart?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Multipart? other)
Parameters
other
MultipartAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
public void Free()
GetGType()
public static Type GetGType()
Returns
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
New(string)
public static Multipart New(string mimeType)
Parameters
mimeType
string
Returns
NewFromMessage(MessageHeaders, Bytes)
public static Multipart? NewFromMessage(MessageHeaders headers, Bytes body)
Parameters
headers
MessageHeadersbody
Bytes