-
Notifications
You must be signed in to change notification settings - Fork 367
Open
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interest
Description
What problem are you trying to solve?
Making it easier to serve HTML content directly from a service worker.
What solutions exist today?
This is actually quite easy:
new Response(html, { headers: { "Content-Type": "text/html" } })
However not very discoverable and doesn't feel "encouraged".
How would you solve it?
Response.html(html_string)
, kind of like Response.json(jsonable_object)
, can perform the same as the existing solution, but in an ergonomic/"encouraged" way.
Anything else?
No response
amadeuspagel and matthewp
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interest