AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.12.1" />

 FormDataSet

public sealed class FormDataSet : IEnumerable<string>, IEnumerable
Bundles information stored in HTML forms.
public string Boundary { get; }

Gets the chosen boundary.

public FormDataSet()

Creates a new form data set with a randomly generated boundary.

public void Append(string name, string value, string type)

Appends a text entry to the form data set.

public void Append(string name, IFile value, string type)

Appends a file entry to the form data set.

public Stream As(IFormSubmitter submitter, Encoding encoding = null)

Applies the given submitter to serialize the form data set.

public Stream AsJson()

Applies the application json encoding algorithm. https://darobin.github.io/formic/specs/json/#the-application-json-encoding-algorithm

public Stream AsMultipart(Encoding encoding = null)

Applies the multipart/form-data algorithm. http://www.w3.org/html/wg/drafts/html/master/forms.html#multipart/form-data-encoding-algorithm

public Stream AsPlaintext(Encoding encoding = null)

Applies the plain encoding algorithm. http://www.w3.org/html/wg/drafts/html/master/forms.html#text/plain-encoding-algorithm

public Stream AsUrlEncoded(Encoding encoding = null)

Applies the urlencoded algorithm. http://www.w3.org/html/wg/drafts/html/master/forms.html#application/x-www-form-urlencoded-encoding-algorithm

public IEnumerator<string> GetEnumerator()

Gets an enumerator over all entry names.