Class WebDownload

Namespace
ProtoTest.Web
Assembly
ProtoTest.Web.dll

A file the browser downloaded while a web operation ran.

public sealed record WebDownload : IEquatable<WebDownload>
Inheritance
WebDownload
Implements
Inherited Members
Extension Methods

Constructors

WebDownload(string, string, ReadOnlyMemory<byte>)

A file the browser downloaded while a web operation ran.

public WebDownload(string FileName, string MediaType, ReadOnlyMemory<byte> Content)

Parameters

FileName string

The suggested file name, or the name the test asked for.

MediaType string

A best-effort media type guessed from the file's extension.

Content ReadOnlyMemory<byte>

The downloaded bytes.

Properties

Content

The downloaded bytes.

public ReadOnlyMemory<byte> Content { get; init; }

Property Value

ReadOnlyMemory<byte>

FileName

The suggested file name, or the name the test asked for.

public string FileName { get; init; }

Property Value

string

MediaType

A best-effort media type guessed from the file's extension.

public string MediaType { get; init; }

Property Value

string

Size

The size of the downloaded file in bytes.

public long Size { get; }

Property Value

long