Interface HttpFiltersSource

All Known Implementing Classes:
AntiCache, BlockList, ConcurrencyLimiter, HarRecorder, HttpCache, HttpFiltersBuilder.Built, HttpFiltersChain, HttpFiltersSourceAdapter, HttpLogger, MapLocal, MapRemote, ModifyBody, ModifyHeaders, RewriteRules, ScriptedProxy, ServerReplay, StickyCookie, WarcRecorder

public interface HttpFiltersSource
Creates the HttpFilters for each request.
  • Method Details

    • filterRequest

      HttpFilters filterRequest(HttpRequest originalRequest, FlowContext flowContext)
      Returns the filters for a request, or null to proxy it unfiltered.
      Parameters:
      originalRequest - a copy of the request as received from the client
      flowContext - the client connection the request arrived on
      Returns:
      the per-request filters, or null to leave the request unfiltered
    • getMaximumRequestBufferSizeInBytes

      default int getMaximumRequestBufferSizeInBytes()
      When positive, request bodies are buffered (up to this many bytes) and filters receive a single FullHttpRequest. Larger requests get 413.
      Returns:
      the maximum request buffer size in bytes, or zero for streaming
    • getMaximumResponseBufferSizeInBytes

      default int getMaximumResponseBufferSizeInBytes()
      When positive, response bodies are buffered (up to this many bytes) and filters receive a single FullHttpResponse. Larger responses get 502.
      Returns:
      the maximum response buffer size in bytes, or zero for streaming