Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/1.guide/2.event-handler.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ defineEventHandler({
Values returned from event handlers are automatically converted to responses. It can be:

- JSON serializable value. If returning a JSON object or serializable value, it will be stringified and sent with default `application/json` content-type.
- `string`: Sent as-is using default `application/html` content-type.
- `string`: Sent as-is using default `text/html` content-type.
- `null`: h3 with end response with `204 - No Content` status code.
- [Web `ReadableStream`](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) or [node `Readable`](https://nodejs.org/api/stream.html#readable-streams)
- [Web `ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or [node `Buffer`](https://nodejs.org/api/buffer.html#buffer)
Expand Down