Class
CompressedContent
Represents a base class for HTTP contents served over an compressing stream.
public abstract class CompressedContent : HttpContent, IDisposableInheritance #
object ← HttpContent ← CompressedContent
Derived #
BrotliContent, DeflateContent, GZipContent
Implements #
Inherited Members #
HttpContent.ReadAsStringAsync(), HttpContent.ReadAsStringAsync(CancellationToken), HttpContent.ReadAsByteArrayAsync(), HttpContent.ReadAsByteArrayAsync(CancellationToken), HttpContent.ReadAsStream(), HttpContent.ReadAsStream(CancellationToken), HttpContent.ReadAsStreamAsync(), HttpContent.ReadAsStreamAsync(CancellationToken), HttpContent.SerializeToStreamAsync(Stream, TransportContext?), HttpContent.SerializeToStream(Stream, TransportContext?, CancellationToken), HttpContent.SerializeToStreamAsync(Stream, TransportContext?, CancellationToken), HttpContent.CopyTo(Stream, TransportContext?, CancellationToken), HttpContent.CopyToAsync(Stream), HttpContent.CopyToAsync(Stream, CancellationToken), HttpContent.CopyToAsync(Stream, TransportContext?), HttpContent.CopyToAsync(Stream, TransportContext?, CancellationToken), HttpContent.LoadIntoBufferAsync(), HttpContent.LoadIntoBufferAsync(long), HttpContent.LoadIntoBufferAsync(CancellationToken), HttpContent.LoadIntoBufferAsync(long, CancellationToken), HttpContent.CreateContentReadStream(CancellationToken), HttpContent.CreateContentReadStreamAsync(), HttpContent.CreateContentReadStreamAsync(CancellationToken), HttpContent.TryComputeLength(out long), HttpContent.Dispose(bool), HttpContent.Dispose(), HttpContent.Headers, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| CompressedContent(HttpContent) | Initializes a new instance of compressing stream with the specified inner HTTP content. |
| CompressedContent(byte[]) | Initializes a new instance of compressing stream with the specified byte array content. |
| CompressedContent(Stream) | Initializes a new instance of compressing stream with the specified stream content. |
Properties #
| Name | Description |
|---|---|
| InnerContent | Gets the inner HTTP content. |
Methods #
| Name | Description |
|---|---|
| Dispose(bool) | |
| GetCompressingStream(Stream) | Gets a stream that compresses the output stream. |
| SerializeToStream(Stream, TransportContext?, CancellationToken) | |
| SerializeToStreamAsync(Stream, TransportContext?) | |
| SerializeToStreamAsync(Stream, TransportContext?, CancellationToken) | |
| Setup() | Represents the method that is invoked once within the constructor to setup this compressor. This method is indeeded to add the missing Content-Encoding headers used by this compressor. |
| TryComputeLength(out long) |