ClientWebSocket.HttpResponseHeaders Property

Definition

Gets (if CollectHttpResponseDetails is set) or sets the upgrade response headers.

C#
public System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IEnumerable<string>>? HttpResponseHeaders { get; set; }

Property Value

Remarks

The setter can be used to reduce the memory usage of an active WebSocket connection once headers are no longer needed.

Applies to

Product Versions
.NET 7, 8, 9, 10