Skip to content

Phase 3, Task 13: Remove buffered mode from HtmlRewriterAdapter #588

@aram356

Description

@aram356

Parent: #563
Depends on: Tasks 11, 12

Summary

With all script rewriters fragment-safe, the `new_buffered()` constructor and the `buffered` flag in `HtmlRewriterAdapter` are no longer needed. Remove the dual-mode complexity.

Changes

  • Delete `HtmlRewriterAdapter::new_buffered()`
  • Remove `buffered: bool` field and `accumulated_input: Vec`
  • Remove the `if self.buffered` branch in `process_chunk()`
  • Delete `lol_html_fragments_text_across_chunk_boundaries` test (documents the problem, no longer needed as a gate)

File: `crates/trusted-server-core/src/streaming_processor.rs`

Plan

See `docs/superpowers/specs/2026-03-25-streaming-response-design.md` — Phase 3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions