0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-29 17:46:30 +01:00
Commit Graph

7 Commits

Author SHA1 Message Date
Sor4chi
1140532b95
fix: streamSSE's doesn't trigger onAbort correctly (#1920)
* test: add onAbort case to stream helper

* fix: how to handle sse

* test: add aborted case to streamSSE helper

* chore: denoify

* chore: lintfix
2024-01-09 15:46:51 +09:00
Sor4chi
4dfcda8282
feat(streaming): implement stream.onAbort (#1871)
* feat: extend `StreamAPI` for response interception and adapt stream handler for it

* chore: denoify
2024-01-02 23:18:04 +09:00
watany
7bbaefcbee
feat(helper): export SSEStreamingApi and SSEMessage. (#1863)
* refactor

* export

* check & denoify
2023-12-27 10:45:34 +09:00
Sor4chi
7768865e7a
fix: move c.stream* to helper (#1846)
* refactor: move streaming helper to `streaming/sse.ts`

* feat: add streamSSE's export in streaming handler

* feat: move `stream` and `streamText` to streaming helper

* chore: add deprecated expression for `c.stream` and `c.streamText`

* fix: use `stream` helper in streamSSE

* refactor: move `streamText` to `text.ts`

* test: add some case to `stream` and `streamText`

* test: refactor `streamSSE` case for uniformity

* chore: denoify

* fix: update jsdoc's deprecated description, simplify `c.stream` and `c.streamText`

* fix: match the header notation with that of `streamSSE

* chore: denoify

* refactor: remove unnecesary export
2023-12-27 06:55:24 +09:00
watany
7adae90fd7
fix(helper): Stream SSE Helper Non-Closure (#1650)
* fix(helper): Stream SSE Helper Non-Closure

* denoify

* test fixed.
2023-11-08 20:54:02 +09:00
Yusuke Wada
ec39f44cb2
fix(streaming): fix SSE format (#1579)
* fix(streaming): fix SSE format

* denoify
2023-10-16 18:54:28 +09:00
watany
96476a787b
feat(helper): streaming-sse (#1504)
* feat(helper): streaming-sse

* lint-check

* fixed streaming

* few fixed.

* denoify
2023-10-05 16:33:34 +09:00