def chunk.line

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

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

1049# a chunk's size as 8 lowercase hex digits, then CRLF (RFC 9112 §7.1)
1050def chunk.line(+n: U32) -> String:
1051  SCon{hex.at(n, 28n), SCon{hex.at(n, 24n), SCon{hex.at(n, 20n),
1052    SCon{hex.at(n, 16n), SCon{hex.at(n, 12n), SCon{hex.at(n, 8n),
1053      SCon{hex.at(n, 4n), SCon{hex.at(n, 0n), "\r\n"}}}}}}}}

Uses (3)

Used by (1)