src/server.bend fails
raw source on the hub · import emerging-ezhttp@0.9.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 0xf0cabef12a69d5a23f62f89a75e1a7ba/src/body.bend:9). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Text)
- observed : 'Text'
Location:
8 | Empty{}
9>| Text{text: String}
| ^^^^
10 | Octets{bytes: List<&2, U32>}