Skip to content

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>

View source

public string? Body { get; init; }

Value: string

View source

public string? ContentType { get; init; }

Sets the Content-Type response header.

Value: string

View source

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

Value: IReadOnlyDictionary<string, string>

View source

public object? Json { get; init; }

A JSON-safe value, sent serialized as application/json unless ContentType says otherwise.

Value: object

View source

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

View source

public int? Status { get; init; }

HTTP status from 100 to 599. Defaults to 200.

Value: int?

View source