src/server.bend fails
raw source on the hub · import emerging-ezhttp@0.12.0.0/src/server.bend as Server
ezhttp/src/server: listen, accept, parse one request, write one response. Uses Base TCP (no TLS in v0). One exchange per connection with Connection: close, one connection at a time. The handler returns IO; a pure one is lifted. Every decision after an effect is step.bend's, so a failed accept, recv or send loses that connection, logs one line and the server takes the next one (HTTP-SRV-4).
4 imports
import Base import ./http.bend as Http import ./cors.bend as Cors import ./step.bend as Step
The reader could not load this file (at 0x3dbb16bf4e0314e097c69a222f1a4d08/src/step.bend:16). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Lost)
- observed : 'Lost'
Location:
15 | Kept{value: A}
16>| Lost{line: String}
| ^^^^
17 |