def head.hit

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

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

380# whether a head line names this header (field names are case-insensitive:
381# RFC 9110 §5.1)
382def head.hit(h: String, +name: String) -> Bool:
383  String.starts_with(String.to_lower(h), name ++ ":")

Uses (5)

Used by (2)