Table of Contents

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

FilterScope

CaptureCookies

Whether to capture cookies from Set-Cookie response headers. Default is true.

public bool CaptureCookies { get; set; }

Property Value

bool

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

List<string>

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

bool

DefaultDescription

public override string DefaultDescription { get; }

Property Value

string

Methods

GetExamples()

public override IEnumerable<ActionExample> GetExamples()

Returns

IEnumerable<ActionExample>

InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)

public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)

Parameters

context ExchangeContext
exchange Exchange
connection Connection
scope FilterScope
breakPointManager BreakPointManager

Returns

ValueTask