Sisk

Class

GZipContent

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

Represents an HTTP content that is compressed using the GZip algorithm.

C#
public sealed class GZipContent : CompressedContent, IDisposable

Inheritance #

object ← HttpContent ← CompressedContent ← GZipContent

Implements #

IDisposable

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 #

NameDescription
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 #

NameDescription
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.

Type to search the documentation and the API reference.