akka.http.scaladsl.unmarshalling
Enables using Either to encode the following unmarshalling logic:
Attempt unmarshalling the entity as as R
first (yielding R
),
and if it fails attempt unmarshalling as L
(yielding Left
).
Enables using Either to encode the following unmarshalling logic:
Attempt unmarshalling the entity as as R
first (yielding R
),
and if it fails attempt unmarshalling as L
(yielding Left
).
Note that the Either's "R" type will be attempted first (as Left is often considered as the "failed case" in Either).