IdempotencyResponse
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe stored HTTP response.
public sealed record IdempotencyResponse : IEquatable<IdempotencyResponse>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<IdempotencyResponse>
Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
Section titled “Constructors”IdempotencyResponse()
Section titled “ IdempotencyResponse()”public IdempotencyResponse()Properties
Section titled “Properties”The original response’s raw body.
public required string Body { get; init; }Property Value
Section titled “Property Value”ContentType
Section titled “ ContentType”The original response’s content type.
public required string ContentType { get; init; }Property Value
Section titled “Property Value”Headers
Section titled “ Headers”The HTTP headers of the original response that must be preserved
beyond the body/status code/content type (for example, Location,
Preference-Applied).
public IReadOnlyDictionary<string, string> Headers { get; init; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
The identifier of the run, if the response produced one; otherwise null.
public Guid? RunId { get; init; }Property Value
Section titled “Property Value”Guid?
StatusCode
Section titled “ StatusCode”The original response’s status code.
public required int StatusCode { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(IdempotencyResponse?)
Section titled “ Equals(IdempotencyResponse?)”public bool Equals(IdempotencyResponse? other)Parameters
Section titled “Parameters”other IdempotencyResponse?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(IdempotencyResponse?, IdempotencyResponse?)
Section titled “ operator ==(IdempotencyResponse?, IdempotencyResponse?)”public static bool operator ==(IdempotencyResponse? left, IdempotencyResponse? right)Parameters
Section titled “Parameters”left IdempotencyResponse?
right IdempotencyResponse?
Returns
Section titled “Returns”operator !=(IdempotencyResponse?, IdempotencyResponse?)
Section titled “ operator !=(IdempotencyResponse?, IdempotencyResponse?)”public static bool operator !=(IdempotencyResponse? left, IdempotencyResponse? right)Parameters
Section titled “Parameters”left IdempotencyResponse?
right IdempotencyResponse?