An Encoder<A> turns a typed value into the JSON that goes on the wire — the request-side
counterpart of Decoder. Any function with this shape is an encoder.
Pass one as encode on an Http request when flatten can't express the wire shape you need:
custom date formats, snake_case keys, stripping fields.
An
Encoder<A>turns a typed value into the JSON that goes on the wire — the request-side counterpart of Decoder. Any function with this shape is an encoder.Pass one as
encodeon anHttprequest whenflattencan't express the wire shape you need: custom date formats, snake_case keys, stripping fields.