Microsoft.AspNetCore.Server.IIS Used to allocate and distribute re-usable blocks of memory. This default value passed in to Rent to use the default value for the pool. Block tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The individual blocks are then treated as independent array segments. Back-reference to the memory pool which this block was allocated from. It may only be returned to this pool. This object cannot be instantiated outside of the static Create method Block tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The individual blocks are then treated as independent array segments. This object cannot be instantiated outside of the static Create method Back-reference to the memory pool which this block was allocated from. It may only be returned to this pool. Back-reference to the slab from which this block was taken, or null if it is one-time-use memory. Slab tracking object used by the byte buffer memory pool. A slab is a large allocation which is divided into smaller blocks. The individual blocks are then treated as independent array segments. This handle pins the managed array in memory until the slab is disposed. This prevents it from being relocated and enables any subsections of the array to be used as native memory pointers to P/Invoked API calls. True as long as the blocks from this slab are to be considered returnable to the pool. In order to shrink the memory pool size an entire slab must be removed. That is done by (1) setting IsActive to false and removing the slab from the pool's _slabs collection, (2) as each block currently in use is Return()ed to the pool it will be allowed to be garbage collected rather than re-pooled, and (3) when all block tracking objects are garbage collected and the slab is no longer references the slab will be garbage collected and the memory unpinned will be unpinned by the slab's Dispose. Used to allocate and distribute re-usable blocks of memory. The size of a block. 4096 is chosen because most operating systems use 4k pages. Allocating 32 contiguous blocks per slab makes the slab size 128k. This is larger than the 85k size which will place the memory in the large object heap. This means the GC will not try to relocate this array, so the fact it remains pinned does not negatively affect memory management's compactification. Max allocation block size for pooled blocks, larger values can be leased but they will be disposed after use rather than returned to the pool. 4096 * 32 gives you a slabLength of 128k contiguous bytes allocated per slab Thread-safe collection of blocks which are currently in the pool. A slab will pre-allocate all of the block tracking objects and add them to this collection. When memory is requested it is taken from here first, and when it is returned it is re-added. Thread-safe collection of slabs which have been allocated by this pool. As long as a slab is in this collection and slab.IsActive, the blocks will be added to _blocks when returned. This is part of implementing the IDisposable pattern. This default value passed in to Rent to use the default value for the pool. Called to take a block from the pool. The block that is reserved for the called. It must be passed to Return when it is no longer being used. Internal method called when a block is requested and the pool is empty. It allocates one additional slab, creates all of the block tracking objects, and adds them all to the pool. Called to return a block to the pool. Once Return has been called the memory no longer belongs to the caller, and Very Bad Things will happen if the memory is read of modified subsequently. If a caller fails to call Return and the block tracking object is garbage collected, the block tracking object's finalizer will automatically re-create and return a new tracking object into the pool. This will only happen if there is a bug in the server, however it is necessary to avoid leaving "dead zones" in the slab due to lost block tracking objects. The block to return. It must have been acquired by calling Lease on the same memory pool instance. This class is used when subclassing EndPoint, and provides indication on how to format the memory buffers that winsock uses for network addresses. [To be supplied.] [To be supplied.] Find the segment of the URI byte array which represents the path. Compare the beginning portion of the raw URL byte array to https:// and http:// The byte array represents the raw URI Length of the matched bytes, 0 if it is not matched. Unescape a given path string in place. The given path string may contain escaped char. The raw path string to be unescaped The unescaped path string Unescape the percent-encodings The iterator point to the first % char The place to write to The end of the buffer The byte array Read the percent-encoding and try unescape it. The operation first peek at the character the iterator points at. If it is % the is then moved on to scan the following to characters. If the two following characters are hexadecimal literals they will be unescaped and the value will be returned. If the first character is not % the iterator will be removed beyond the location of % and -1 will be returned. If the following two characters can't be successfully unescaped the iterator will be move behind the % and -1 will be returned. The value to read The end of the buffer The byte array The unescaped byte if success. Otherwise return -1. Read the next char and convert it into hexadecimal value. The iterator will be moved to the next byte no matter no matter whether the operation successes. The value to read The end of the buffer The byte array The hexadecimal value if successes, otherwise -1. Reads data from the Input pipe to the user. Writes data to the output pipe. Flushes the data in the output pipe Extensions to that enable access to IIS features. Gets the value of a server variable for the current request. The http context for the request. The name of the variable. null if the feature does not support the feature. May return null or empty if the variable does not exist or is not set. For a list of common server variables available in IIS, see http://go.microsoft.com/fwlink/?LinkId=52471. Cannot write to response body after connection has been upgraded. Cannot write to response body after connection has been upgraded. The response has been aborted due to an unhandled application exception. The response has been aborted due to an unhandled application exception. Cannot upgrade a non-upgradable request. Check IHttpUpgradeFeature.IsUpgradableRequest to determine if a request can be upgraded. Cannot upgrade a non-upgradable request. Check IHttpUpgradeFeature.IsUpgradableRequest to determine if a request can be upgraded. IHttpUpgradeFeature.UpgradeAsync was already called and can only be called once per connection. IHttpUpgradeFeature.UpgradeAsync was already called and can only be called once per connection. Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead. Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead. Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. Synchronous operations are disallowed. Call WriteAsync or set AllowSynchronousIO to true instead. Cannot write to the response body, the response has completed. Cannot write to the response body, the response has completed. The connection was aborted by the application. The connection was aborted by the application. The connection or stream was aborted because a write operation was aborted with a CancellationToken. The connection or stream was aborted because a write operation was aborted with a CancellationToken. {name} cannot be set because the response has already started. {name} cannot be set because the response has already started. If true the server should set HttpContext.User. If false the server will only provide an identity when explicitly requested by the AuthenticationScheme. Note Windows Authentication must also be enabled in IIS for this to work. Sets the display name shown to users on login pages. The default is null. Used to indicate if the authentication handler should be registered. This is only done if ANCM indicates IIS has a non-anonymous authentication enabled, or for back compat with ANCMs that did not provide this information. This feature provides access to request server variables set. This feature is only available when hosting ASP.NET Core in-process with IIS or IIS Express. For a list of common server variables available in IIS, see http://go.microsoft.com/fwlink/?LinkId=52471. Gets or sets the value of a server variable for the current request. The variable name May return null or empty if the variable does not exist or is not set. Configures the port and base path the server should listen on when running behind AspNetCoreModule. The app will also be configured to capture startup errors.