def body

ezmcp@0.1.0.0 · src/client.bend:50

import ezmcp@0.1.0.0/src/client.bend as Client
import Base
import ezmcp@0.1.0.0/src/sse.bend as Sse

50# a reply body's JSON text: an event stream's last data, else the body
51def body(sse: Bool, +text: String) -> String:
52  match sse:
53    case True{}:
54      Sse.last(text)
55    case False{}:
56      text

Uses (3)

Used by (1)