Table of Contents

Interface IOperationResponse

Namespace
Olve.TypeSpec
Assembly
Olve.TypeSpec.dll

One declared response of an operation: a variant of the generated per-operation response union (WidgetsUpdateResponse.Conflict, …) that knows its status and how to write itself.

public interface IOperationResponse

Properties

Status

The declared status of this variant (200, 404, …).

int Status { get; }

Property Value

int

Methods

ToHttpResult()

Writes the variant with its status (and its body, if it has one).

IResult ToHttpResult()

Returns

IResult