Encode #
Serializes types to a ChunkedBuffer containing their canonical HTTP representation for a specific
protocol version.
Serializes a type t to a ChunkedBuffer containing its canonical HTTP representation for protocol
version v.
- encode : ChunkedBuffer → t → ChunkedBuffer
Encodes a type
tto aChunkedBuffer.
Instances
@[implicit_reducible]
Equations
- Std.Http.Internal.instEncodeV11Version = { encode := fun (buffer : Std.Http.Internal.ChunkedBuffer) => buffer.writeString ∘ toString }