Skip to content

Phase 3, Task 14: Always use streaming adapter in create_html_processor #589

@aram356

Description

@aram356

Parent: #563
Depends on: Task 13

Summary

`create_html_processor` currently selects `new_buffered()` when script rewriters are present. With buffered mode removed, always use the streaming constructor.

Changes

  • Remove `has_script_rewriters` check in `create_html_processor`
  • Always call `HtmlRewriterAdapter::new(settings)`
  • Update doc comment to reflect streaming-only behavior

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

Plan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions