RunicServedBlob record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicServedBlob : IEquatable<RunicServedBlob>

Inherits or implements IEquatable.

The response a window's host gives for a blob URL (blobs/1), as RunicWindowTestHost.ReadBlobAsync serves it.

Parameters

StatusCode

The HTTP status: 200, 206 for a range, 304, 404 for a released or unknown URL, 416.

Headers

The response headers, such as Content-Disposition and Cache-Control, by name.

Content

The body; empty for HEAD and for a status without one.

Constructors

RunicServedBlob

public RunicServedBlob(int StatusCode, IReadOnlyDictionary<string, string> Headers, byte[] Content)

The response a window's host gives for a blob URL (blobs/1), as RunicWindowTestHost.ReadBlobAsync serves it.

Parameters

StatusCode

The HTTP status: 200, 206 for a range, 304, 404 for a released or unknown URL, 416.

Headers

The response headers, such as Content-Disposition and Cache-Control, by name.

Content

The body; empty for HEAD and for a status without one.

Properties

Content

public byte[] Content { get; init; }

The body; empty for HEAD and for a status without one.

ContentDisposition

public string? ContentDisposition { get; }

The Content-Disposition header, or null.

ContentType

public string? ContentType { get; }

The Content-Type header, or null.

Headers

public IReadOnlyDictionary<string, string> Headers { get; init; }

The response headers, such as Content-Disposition and Cache-Control, by name.

StatusCode

public int StatusCode { get; init; }

The HTTP status: 200, 206 for a range, 304, 404 for a released or unknown URL, 416.