Http.redirect.body: def of bend-kit-http@0.38.2.0 Import: import bend-kit-http@0.38.2.0/http.bend as Http Lines 1777-1785 of bend-kit-http@0.38.2.0/http.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http@0.38.2.0/http.bend&start_line=1777&end_line=1785 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # 303 turns any method but HEAD into GET; 301 and 302 turn POST into GET; # 307 and 308 keep method and body. A GET carries no body or body headers. # Credentials do not follow a hop to another origin. def redirect.body(drop: Bool, body: Bytes.Bytes) -> Bytes.Bytes: match drop: case True{}: Bytes.new(0) case False{}: body Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=new