KrFormOptions class

Configures form parsing behavior for Kestrun.

public sealed class KrFormOptions

Public Members

name description
KrFormOptions() Initializes a new instance of the KrFormOptions class.
KrFormOptions(…) Initializes a new instance of the KrFormOptions class by copying settings from another instance.
AllowedPartContentEncodings { get; } Gets the allowed part content encodings for decompression.
AllowedRequestContentTypes { get; } Gets the allowed request content types.
ComputeSha256 { get; set; } Gets or sets a value indicating whether SHA-256 hashes should be computed for file parts.
DefaultUploadPath { get; set; } Gets or sets the default upload path for stored parts.
Description { get; set; } Gets or sets the description of the form parser.
EnablePartDecompression { get; set; } Gets or sets a value indicating whether per-part decompression is enabled.
Limits { get; } Gets the form parsing limits.
Logger { get; set; } Gets or sets the logger used by the form parser.
MaxDecompressedBytesPerPart { get; set; } Gets or sets the maximum decompressed bytes per part.
Name { get; set; } Gets or sets the name of the form parser.
OnCompleted { get; set; } Gets or sets the hook invoked after parsing completes.
OnPart { get; set; } Gets or sets the hook invoked for each part.
RejectUnknownContentEncoding { get; set; } Gets or sets a value indicating whether unknown content encodings should be rejected.
RejectUnknownRequestContentType { get; set; } Gets or sets a value indicating whether unknown request content types should be rejected.
Rules { get; } Gets the per-part rules.
SanitizeFileName { get; set; } Gets or sets the filename sanitizer.

See Also