Hide

YetaWF.Core Package Documentation

Display
Print

YetaWF.Core.ResponseFilter.WhiteSpaceResponseFilter Class

The class responsible for output (HTML) compression.

Enabling compression doesn't really help much. YetaWF generates fairly compact HTML so savings are typically just 1-10%. This code does JavaScript compression and eliminates excessive spacing (line " ", \r,\n), while preserving formatting in <textarea>, <pre> and <script> tags.

Namespace: YetaWF.Core.ResponseFilter
Assembly: YetaWF.Core

Inheritance

Syntax

public class WhiteSpaceResponseFilter : System.IO.MemoryStream;

Constructors

This class cannot be instantiated.

Properties

PublicInherited from System.IO.MemoryStreamCanReadGets a value indicating whether the current stream supports reading.
PublicInherited from System.IO.MemoryStreamCanSeekGets a value indicating whether the current stream supports seeking.
PublicInherited from System.IO.StreamCanTimeoutGets a value that determines whether the current stream can time out.
PublicInherited from System.IO.MemoryStreamCanWriteGets a value indicating whether the current stream supports writing.
PublicInherited from System.IO.MemoryStreamCapacityGets or sets the number of bytes allocated for this stream.
PublicInherited from System.IO.MemoryStreamLengthGets the length of the stream in bytes.
PublicInherited from System.IO.MemoryStreamPositionGets or sets the current position within the stream.
PublicInherited from System.IO.StreamReadTimeoutGets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out.
PublicInherited from System.IO.StreamWriteTimeoutGets or sets a value, in milliseconds, that determines how long the stream will attempt to write before timing out.

Fields

PublicStaticInherited from System.IO.StreamNullA Stream with no backing store.

Methods

PublicInherited from System.IO.StreamBeginReadBegins an asynchronous read operation. (Consider using Int32) instead.)
PublicInherited from System.IO.StreamBeginWriteBegins an asynchronous write operation. (Consider using Int32) instead.)
PublicInherited from System.IO.StreamCloseCloses the current stream and releases any resources (such as sockets and file handles) associated with the current stream. Instead of calling this method, ensure that the stream is properly disposed.
PublicStaticCompressCompresses the HTML input buffer which is normally the complete page.
PublicInherited from System.IO.StreamCopyToReads the bytes from the current stream and writes them to another stream.
PublicInherited from System.IO.StreamCopyToAsyncAsynchronously reads the bytes from the current stream and writes them to another stream.
ProtectedInherited from System.IO.StreamCreateWaitHandleAllocates a WaitHandle object.
PublicInherited from System.IO.StreamDisposeReleases all resources used by the Stream.
PublicInherited from System.IO.StreamDisposeAsyncAsynchronously releases the unmanaged resources used by the Stream.
PublicInherited from System.IO.StreamEndReadWaits for the pending asynchronous read to complete. (Consider using Int32) instead.)
PublicInherited from System.IO.StreamEndWriteEnds an asynchronous write operation. (Consider using Int32) instead.)
ProtectedInherited from System.IO.StreamEnsureAsyncActiveSemaphoreInitialized(not specified)
PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicInherited from System.IO.MemoryStreamFlushOverrides the Flush method so that no action is performed.
PublicInherited from System.IO.StreamFlushAsyncAsynchronously clears all buffers for this stream and causes any buffered data to be written to the underlying device.
PublicInherited from System.IO.MemoryStreamGetBufferReturns the array of unsigned bytes from which this stream was created.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicInherited from System.MarshalByRefObjectGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicInherited from System.MarshalByRefObjectInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
ProtectedInherited from System.IO.StreamObjectInvariantProvides support for a Contract.
PublicInherited from System.IO.MemoryStreamReadReads a block of bytes from the current stream and writes the data to a buffer.
PublicInherited from System.IO.MemoryStreamReadAsyncAsynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests.
PublicInherited from System.IO.MemoryStreamReadByteReads a byte from the current stream.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.IO.MemoryStreamSeekSets the position within the current stream to the specified value.
PublicInherited from System.IO.MemoryStreamSetLengthSets the length of the current stream to the specified value.
PublicStaticInherited from System.IO.StreamSynchronizedCreates a thread-safe (synchronized) wrapper around the specified Stream object.
PublicInherited from System.IO.MemoryStreamToArrayWrites the stream contents to a byte array, regardless of the Position property.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicInherited from System.IO.MemoryStreamTryGetBufferReturns the array of unsigned bytes from which this stream was created. The return value indicates whether the conversion succeeded.
ProtectedStaticInherited from System.IO.StreamValidateBufferArgumentsValidates arguments provided to reading and writing methods on Stream.
ProtectedStaticInherited from System.IO.StreamValidateCopyToArgumentsValidates arguments provided to the Int32) or CancellationToken) methods.
PublicInherited from System.IO.MemoryStreamWriteWrites a block of bytes to the current stream using data read from a buffer.
PublicInherited from System.IO.MemoryStreamWriteAsyncAsynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.
PublicInherited from System.IO.MemoryStreamWriteByteWrites a byte to the current stream at the current position.
PublicInherited from System.IO.MemoryStreamWriteToWrites the entire contents of this memory stream to another stream.

See Also YetaWF.Core Overview