def headers.find.pick

emerging-ezhttp@0.21.0.0 · src/http.bend:474

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

474# the value when this field is the one asked for
475def headers.find.pick(value: String, hit: Bool, rest: Unit -> String) -> String:
476  match hit:
477    case True{}:
478      value
479    case False{}:
480      rest(Unit{})

Uses (3)

Used by (1)