View Source Frugality.Encoder behaviour (Frugality v0.1.0)
A behaviour for entity-tag encoding.
Defines a single callback - Frugality.Encoder.encode/1
, which
expects an iodata/0
and returns a binary/0
.
The callback signature is required, instead of simply expecting and
returning a binary/0
, because one can represent the entity-tag's
source as an iolist/0
.
Link to this section Summary
Link to this section Types
@type t() :: module()