~/bend-docscommunity

src/server.bend fails

raw source on the hub · import emerging-ezhttp@0.19.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).

5 imports
import Base
import ./http.bend as Http
import ./cors.bend as Cors
import ./step.bend as Step
import bend-kit-wire@0.4.6.1/wire.bend as W