StreamResponseBodyFeature Class

Definition

An implementation of IHttpResponseBodyFeature that aproximates all of the APIs over the given Stream.

public ref class StreamResponseBodyFeature : Microsoft::AspNetCore::Http::Features::IHttpResponseBodyFeature
public class StreamResponseBodyFeature : Microsoft.AspNetCore.Http.Features.IHttpResponseBodyFeature
type StreamResponseBodyFeature = class
    interface IHttpResponseBodyFeature
Public Class StreamResponseBodyFeature
Implements IHttpResponseBodyFeature
Inheritance
StreamResponseBodyFeature
Implements

Constructors

StreamResponseBodyFeature(Stream)

Wraps the given stream.

StreamResponseBodyFeature(Stream, IHttpResponseBodyFeature)

Wraps the given stream and tracks the prior feature instance.

Properties

PriorFeature

The prior feature, if any.

Stream

The original response body stream.

Writer

A PipeWriter adapted over the given stream.

Methods

CompleteAsync()

This calls StartAsync if it has not previously been called. It will complete the adapted pipe if it exists.

DisableBuffering()

Opts out of write buffering for the response.

Dispose()

Prevents CompleteAsync from operating.

SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

Copies the specified file segment to the given response stream. This calls StartAsync if it has not previoulsy been called.

StartAsync(CancellationToken)

Flushes the given stream if this has not previously been called.

Applies to