def encode_req.word

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

import bend-kit-http@0.38.2.0/http.bend as Http
import Base

1735# Caller headers are lowercased so they cannot duplicate ours; host, connection,
1736# content-length and transfer-encoding are always ours (no smuggling through them).
1737def encode_req.word(close: Bool) -> String:
1738  match close:
1739    case True{}:
1740      "close"
1741    case False{}:
1742      "keep-alive"

Uses (2)

Used by (1)