Methods
Static buffer
-
Static create
- create<T>(decode: (arg: Buffer) => T): BodyCodec<T>
-
Type parameters
Parameters
-
decode: (arg: Buffer) => T
Static json
-
Type parameters
Parameters
Static jsonArray
-
Static jsonObject
-
Static jsonStream
- jsonStream(parser: JsonParser): BodyCodec<void>
-
Parameters
Static none
-
Static pipe
- pipe(stream: WriteStream<Buffer>): BodyCodec<void>
- pipe(stream: WriteStream<Buffer>, close: boolean): BodyCodec<void>
-
Parameters
-
stream: WriteStream<Buffer>
-
Parameters
-
stream: WriteStream<Buffer>
-
close: boolean
Static string
-
-
Parameters
A codec for encoding and decoding HTTP bodies.