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>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
ValueTThe created entity.
LocationstringOptional 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.
MetadataRepresentationMetadataOptional 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
Metadata
Optional representation metadata (ETag, Last-Modified, …) for the new resource.
public RepresentationMetadata? Metadata { get; init; }
Property Value
Value
The created entity.
public T Value { get; init; }
Property Value
- T