def response.text

gralha-http-core@0.1.0.0 · http.bend:383

import gralha-http-core@0.1.0.0/http.bend as Http
import Base

383# The response as sent: its head, with a Content-Length counted in UTF-8
384# bytes after its own headers (unless it has one), then its body.
385def response.text(r: Response) -> String:
386  match r:
387    case Response{+s, h, +b}:
388      head(s, length.with(h, b)) ++ b

Uses (5)

Used by (1)