# bend-net: package entry for BendHub. # Source: https://github.com/naoeosavio/bend-net.git # # HTTP/1.1 and WebSocket (RFC 6455) over TCP for Bend (no TLS, no DNS). # Pure Bend on top of the Base TCP.* kit; the only native code is the three # byte-level socket effects in ./effs/ (C + JS twins: send_bytes, recv_bytes, # recv_frame). No compiler change. # Boundaries: fetch reads at most 8 x 8192 bytes (64 KB cap); https:// is # refused with Fail 501. # # Package entry point. Publish with: # # bend lib/package.bend --publish # # Then import an API from its own file (imports are not transitive, # so the entry only marks the bundle ready): # # import 0x/http.bend as HTTP # import 0x/ws.bend as WS # import 0x/sha1.bend as SHA1 # import 0x/b64.bend as B64 # import 0x/tcp.bend as TCP # # See README.md for the full guide. import Base import ./b64.bend as B64 import ./http.bend as HTTP import ./sha1.bend as SHA1 import ./tcp.bend as TCP import ./ws.bend as WS # Marks the bundle ready; the API lives in http.bend, ws.bend # (with sha1.bend and b64.bend for the handshake) and in # tcp.bend, whose byte effects WS frames ride. def Package.ready() -> Unit: Unit{}