Module: Browserctl::CommandDispatcher::Handlers::Data
- Included in:
- Browserctl::CommandDispatcher
- Defined in:
- lib/browserctl/server/handlers/data.rb
Overview
‘data` is the unified verb family that subsumes `cookie *` and `storage *` (introduced in v0.15 via ADR-0021). Every operation takes a required `scope` ∈ localStorage, sessionStorage and returns a unified envelope shape — see docs/reference/commands.md for the full table.
The legacy ‘cookies`, `set_cookie`, `delete_cookies`, `import_cookies`, `storage_*` handlers remain as aliases that delegate here so the old wire verbs keep working for the v0.15 deprecation window.
Constant Summary collapse
- VALID_SCOPES =
%w[cookies localStorage sessionStorage].freeze