Table of Contents

Class WriteOutcome<T>.Created

Namespace
Trellis
Assembly
Trellis.Http.Abstractions.dll

A new resource was created. Transports as HTTP 201 Created.

public sealed record WriteOutcome<T>.Created : WriteOutcome<T>, IEquatable<WriteOutcome<T>>, IEquatable<WriteOutcome<T>.Created>
Inheritance
WriteOutcome<T>.Created
Implements
Inherited Members
Extension Methods

Constructors

Created(T, string?, RepresentationMetadata?)

A new resource was created. Transports as HTTP 201 Created.

public Created(T Value, string? Location = null, RepresentationMetadata? Metadata = null)

Parameters

Value T

The created entity.

Location string

Optional address of the newly created resource. Null, empty, or whitespace leaves Location generation to the HTTP boundary; without a boundary-supplied address, the header is omitted.

Metadata RepresentationMetadata

Optional representation metadata (ETag, Last-Modified, …) for the new resource.

Properties

Location

Optional address of the newly created resource. Null, empty, or whitespace leaves Location generation to the HTTP boundary; without a boundary-supplied address, the header is omitted.

public string? Location { get; init; }

Property Value

string

Metadata

Optional representation metadata (ETag, Last-Modified, …) for the new resource.

public RepresentationMetadata? Metadata { get; init; }

Property Value

RepresentationMetadata

Value

The created entity.

public T Value { get; init; }

Property Value

T