SocketsHttpHandler.PlaintextStreamFilter Property

Definition

Gets or sets a custom callback that provides access to the plaintext HTTP protocol stream.

C#
public Func<System.Net.Http.SocketsHttpPlaintextStreamFilterContext,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<System.IO.Stream>>? PlaintextStreamFilter { get; set; }

Property Value

A callback that provides access to the plaintext HTTP protocol stream.

Exceptions

An operation has already been started on the current instance.

The current instance has been disposed.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9, 10