def query.find

gralha-http-core@0.1.0.0 · http.bend:149

import gralha-http-core@0.1.0.0/http.bend as Http
import Base

149def query.find(pairs: List<&2, String>, +name: String) -> Maybe<&2, String>:
150  match pairs:
151    case Nil{}:
152      None{}
153    case Con{+p, t}:
154      when(Maybe<&2, String>, String.eq(url.decode(before(p, "=")), name),
155        _ => Some{url.decode(after(p, "="))}, _ => query.find(t, name))

Uses (8)

Used by (1)