Class
GZipContent
Represents an HTTP content that is compressed using the GZip algorithm.
public sealed class GZipContent : CompressedContent, IDisposableInheritance #
object ← HttpContent ← CompressedContent ← GZipContent
Implements #
Inherited Members #
CompressedContent.GetCompressingStream(Stream), CompressedContent.Setup(), CompressedContent.InnerContent, HttpContent.ReadAsStringAsync(), HttpContent.ReadAsStringAsync(CancellationToken), HttpContent.ReadAsByteArrayAsync(), HttpContent.ReadAsByteArrayAsync(CancellationToken), HttpContent.ReadAsStream(), HttpContent.ReadAsStream(CancellationToken), HttpContent.ReadAsStreamAsync(), HttpContent.ReadAsStreamAsync(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.Dispose(), HttpContent.Headers, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| GZipContent(HttpContent) | Initializes a new instance of compressing stream with the specified inner HTTP content. |
| GZipContent(byte[]) | Initializes a new instance of compressing stream with the specified byte array content. |
| GZipContent(Stream) | Initializes a new instance of compressing stream with the specified stream content. |
Methods #
| Name | Description |
|---|---|
| GetCompressingStream(Stream) | Gets a stream that compresses the output stream. |
| 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. |