Expand description
The shape a Browser capture can ask a value to have (#47629).
A capture of text with no ref of its own chooses the value among the text around it, and nothing is
saved if it is not the shape the agent said. A guard that answers yes or no about a value the agent
cannot read is a question about the value, so the shapes are a closed list, never an expression the
agent writes: a short prefix (at most MAX_PREFIX characters), one of the NAMES of a kind of
secret, and a length range. The host (to choose among the words of a row) and srv (before anything is
stored) use the same rule from here, and srv budgets how many shaped captures an agent may make
(browser_capture_shape.rs).
Structs§
- Capture
Shape - What the agent asked a captured value to be.
Constants§
- MAX_
LENGTH - The longest value a range can allow.
- MAX_
PREFIX - The longest prefix taken: enough to tell a kind of key from its neighbours, too little to read a value out.
- NAMES
- The named shapes, as the agent is told them.
digits:Nis N digits, 1 to 32 (a six-digit code).