Class CaptureSessionAction
- Namespace
- Fluxzy.Rules.Actions.HighLevelActions
- Assembly
- Fluxzy.Core.dll
Captures session data (cookies, headers) from HTTP responses and stores them for later replay. Session data is stored per domain.
[ActionMetadata("Capture session data from responses. Captures Set-Cookie headers and optionally other headers like Authorization. Can also capture cookies from request headers for intercepting ongoing sessions. Stored data can be replayed using ApplySessionAction.")]
public class CaptureSessionAction : Action
- Inheritance
-
CaptureSessionAction
- Inherited Members
Constructors
CaptureSessionAction()
public CaptureSessionAction()
Properties
ActionScope
public override FilterScope ActionScope { get; }
Property Value
CaptureCookies
Whether to capture cookies from Set-Cookie response headers. Default is true.
public bool CaptureCookies { get; set; }
Property Value
CaptureHeaders
List of response header names to capture (e.g., "Authorization", "X-Auth-Token"). These headers will be stored and can be replayed on subsequent requests.
public List<string> CaptureHeaders { get; set; }
Property Value
CaptureRequestCookies
Whether to capture cookies from Cookie request headers. This is useful when the proxy is inserted into an ongoing web session where cookies are already set in the browser. Default is false.
public bool CaptureRequestCookies { get; set; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
Methods
GetExamples()
public override IEnumerable<ActionExample> GetExamples()
Returns
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
contextExchangeContextexchangeExchangeconnectionConnectionscopeFilterScopebreakPointManagerBreakPointManager