Skip to content

Commit 3dcbcaf

Browse files
committed
Clearer wording
1 parent afa30d8 commit 3dcbcaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/changelogs-next/2025-01-31-html-rewriter-streaming.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ Methods like `replace`, `append`, and `prepend` now accept [`Response`](/workers
1414
values as [`Content`](/workers/runtime-apis/html-rewriter/#global-types).
1515

1616
This can be helpful in a variety of situations. For instance, you may have a Worker in front of an origin,
17-
and want to replace an element with content from a different source. Prior to this change, if you wanted
18-
to replace an element with content from an upstream URL, you would have to load all of the content and convert
19-
it into a string before replacing the element. This slowed down overall response times.
17+
and want to replace an element with content from a different source. Prior to this change, you would have to load
18+
all of the content from the upstream URL and convert it into a string before replacing the element. This slowed
19+
down overall response times.
2020

2121
Now, you can pass the `Response` object directly into the `replace` method, and HTMLRewriter will immediately
2222
start replacing the content as it is streamed in. This makes responses faster.

0 commit comments

Comments
 (0)