src/server.bend fails
raw source on the hub · import emerging-ezhttp@0.8.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. Handler is a pure Request -> Reply function.
3 imports
import Base import ./http.bend as Http import ./cors.bend as Cors
The reader could not load this file (at 0xf1c957a470368870a6d1d62a8c0cbe32/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>}