src/server.bend fails
raw source on the hub · import emerging-ezhttp@0.21.0.0/src/server.bend as Server
ezhttp/src/server: listen, accept, and serve each connection on its own
fork: parse one request, write one response (Connection: close). Sockets
are Base's (listen) and bend-kit-wire's (accept with a deadline, recv,
send.words), whose effects park on the event loop, so connections overlap.
A _with serve hands the handler a context value and the request as text
with its body's octets, and takes a reply as text, packed octets or a
stream of octet chunks; the plain serves are those with a text handler.
Every decision after an effect is step.bend's or http.bend's (SPEC.md
HTTP-SRV); this module runs the effects in order (HTTP-TRUST-2).
7 imports
import Base import bend-kit-wire@0.4.6.1/wire.bend as W import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes import ./http.bend as Http import ./cors.bend as Cors import ./step.bend as Step import ./wirespec.bend as Spec
The reader could not load this file (at 0xedb2120a04a47dc18c3a756ec7c62750/src/step.bend:17). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Lost)
- observed : 'Lost'
Location:
16 | Kept{value: A}
17>| Lost{line: String}
| ^^^^
18 |