Table of Contents

Class CompressedContent

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

Represents a base class for HTTP contents served over an compressing stream.

public abstract class CompressedContent : HttpContent, IDisposable
Inheritance
CompressedContent
Implements
Derived
Inherited Members

Constructors

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.

CompressedContent(HttpContent)

Initializes a new instance of compressing stream with the specified inner HTTP content.

Properties

InnerContent

Gets the inner HTTP content.

Methods

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)