def step.bare

emerging-ezhttp@0.21.0.0 · src/step.bend:66

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

66# whether a reply is written with its head only: a reply to HEAD, or a 204
67# or 304 (RFC 9110 §9.3.2, §15.3.5, §15.4.5)
68def step.bare(+method: String, +status: U32) -> Bool:
69  Bool.or(String.eq(method, "HEAD"), Http.status.nocontent(status))

Uses (6)

Used by (1)