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. 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
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