def h2.header.items

bend-kit-http@0.38.2.0 · http.bend:3174

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-http2@0.4.0.0/hpack.bend as Hpack

3174def h2.header.items(xs: List<&2, Sigma<&2, &2, String, _ => List<&2, String>>>,
3175    +nominated: List<&2, String>) -> List<&2, Hpack.Field>:
3176  match xs:
3177    case Nil{}:
3178      Nil{}
3179    case (name, values) <> tail:
3180      +key = String.to_lower(name)
3181      h2.header.item(Bool.or(h2.header.skip(key), h2.header.has(nominated, key)),
3182        key, values, h2.header.items(tail, nominated))

Uses (9)

Used by (1)