Search Results for

    Show / Hide Table of Contents

    Class HttpResponseCacheMiddleware

    GET/HEAD response cache middleware. Only allocated when placed in the middleware list; otherwise the hot path pays nothing.

    Inheritance
    object
    HttpResponseCacheMiddleware
    Implements
    IProxyMiddleware
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Titanium.Web.Proxy.Caching
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public sealed class HttpResponseCacheMiddleware : IProxyMiddleware

    Constructors

    | Edit this page View Source

    HttpResponseCacheMiddleware(IHttpResponseCache, TimeSpan?)

    Declaration
    public HttpResponseCacheMiddleware(IHttpResponseCache cache, TimeSpan? defaultTtl = null)
    Parameters
    Type Name Description
    IHttpResponseCache cache
    TimeSpan? defaultTtl

    Methods

    | Edit this page View Source

    InvokeAsync(ProxyMiddlewareContext, ProxyMiddlewareDelegate, CancellationToken)

    Declaration
    public ValueTask InvokeAsync(ProxyMiddlewareContext context, ProxyMiddlewareDelegate next, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ProxyMiddlewareContext context
    ProxyMiddlewareDelegate next
    CancellationToken cancellationToken
    Returns
    Type Description
    ValueTask
    | Edit this page View Source

    TryCacheCurrentResponse(SessionEventArgs)

    Call from the session response path when a small 200 body is already buffered.

    Declaration
    public void TryCacheCurrentResponse(SessionEventArgs session)
    Parameters
    Type Name Description
    SessionEventArgs session

    Implements

    Titanium.Web.Proxy.Abstractions.Middleware.IProxyMiddleware
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX