Body.body.shape: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/body.bend as Body Lines 25-34 of emerging-ezhttp@0.21.0.0/src/body.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/body.bend&start_line=25&end_line=34 import Base import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes # a body as its shape and the octets sent after the request text: a text # body's are none, and the empty body is the empty text def body.shape(b: Body) -> Shape & Bytes.Bytes: match b: case Empty{}: (ShapeText{""}, Bytes.new(0)) case Plain{text}: (ShapeText{text}, Bytes.new(0)) case Octets{bytes}: body.sized(Bytes.length(bytes)) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=length https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=new https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/body.bend&name=Body https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/body.bend&name=Shape https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/body.bend&name=body.sized