Skip to content

Commit e889156

Browse files
docs(http): remove unimplemented deserializeStream handler property
The content-type handler interface table documented a `deserializeStream(stream)` property that Harper does not implement. The `ContentTypeHandler` interface in the core repo declares only `serialize`, `serializeStream`, `deserialize`, and `q`. Removes the `deserializeStream` row and drops the now-dangling "Used when `deserializeStream` is absent." clause from the `deserialize(buffer)` description. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent efa2240 commit e889156

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

reference/http/api.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,12 @@ contentTypes.set('text/xml', {
434434
435435
### Handler Interface
436436
437-
| Property | Type | Description |
438-
| --------------------------- | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
439-
| `serialize(data)` | `(any) => Buffer \| Uint8Array \| string` | Serialize data for a response |
440-
| `serializeStream(data)` | `(any) => ReadableStream` | Serialize as a stream (for async iterables or large data) |
441-
| `deserialize(buffer)` | `(Buffer \| string) => any` | Deserialize an incoming request body. Used when `deserializeStream` is absent. String for `text/*` types, Buffer for binary types. |
442-
| `deserializeStream(stream)` | `(ReadableStream) => any` | Deserialize an incoming request stream |
443-
| `q` | number (0–1) | Quality indicator for content negotiation. Defaults to `1`. |
437+
| Property | Type | Description |
438+
| ----------------------- | ----------------------------------------- | ----------------------------------------------------------------------------------------- |
439+
| `serialize(data)` | `(any) => Buffer \| Uint8Array \| string` | Serialize data for a response |
440+
| `serializeStream(data)` | `(any) => ReadableStream` | Serialize as a stream (for async iterables or large data) |
441+
| `deserialize(buffer)` | `(Buffer \| string) => any` | Deserialize an incoming request body. String for `text/*` types, Buffer for binary types. |
442+
| `q` | number (0–1) | Quality indicator for content negotiation. Defaults to `1`. |
444443
445444
---
446445

0 commit comments

Comments
 (0)