@hyperttp/serializer
v2.0.0
Published
> English | [Русский](https://github.com/IT-IF-OR/hyperttp-serializer/tree/main/lang/ru)
Downloads
222
Readme
@hyperttp/serializer
English | Русский
Request serialization plugin for Hyperttp.
Features
- Serializes request payloads in the Core v2 pipeline.
- Supports protocol-neutral
SendRequest,UniversalResponse, andRequestContextvalues. - Keeps payload transformation as an optional plugin.
Installation
npm install @hyperttp/serializer
# or
bun add @hyperttp/serializerUsage
import { HyperClient } from "hyperttp";
import { withSerializer } from "@hyperttp/serializer";
const client = new HyperClient({
plugins: [withSerializer()],
});Configure the plugin with the exported SerializerOptions type.
License
MIT © dirold2
