RouteFulfillResponse
Namespace: E2E.Engine
public sealed record RouteFulfillResponse : IEquatable<RouteFulfillResponse>How FulfillAsync(RouteFulfillResponse) answers a request. Give at most one of Json, Body, or Path; none is an empty body.
Inheritance: object
Implements: IEquatable<RouteFulfillResponse>
Properties
Section titled “Properties”public string? Body { get; init; }Value: string
ContentType
Section titled “ContentType”public string? ContentType { get; init; }Sets the Content-Type response header.
Value: string
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string>? Headers { get; init; }Value: IReadOnlyDictionary<string, string>
public object? Json { get; init; }A JSON-safe value, sent serialized as application/json unless ContentType says otherwise.
Value: object
public string? Path { get; init; }A file relative to the project root. Its Content-Type follows its extension unless ContentType or a content-type header sets one.
Value: string
Status
Section titled “Status”public int? Status { get; init; }HTTP status from 100 to 599. Defaults to 200.
Value: int?