gralha-http-server
Search uses release 0.1.0.0 · 22 definitions
Definitions (22)
- def read.chunk
- def read.got
- def read.go
- def read.textThe request's text: received until it is whole (Http.request.complete), the peer stops sending, or more than max bytes arrived; "" on an error.
- def read.parse
- def readThe request read and parsed, or None if it never became one.
- def send.doneA failed send also hands back the unsent rest, which a closing reply drops.
- def send.textSends text as it is and closes the socket.
- def closingThe response with Connection: close, unless it names a Connection.
- def sendSends a response (Http.response.text, with Connection: close) and closes the socket.
- def answer.sent
- def answer
- def answer.socket
- def accepted
- def accepted.socket
- def stepAccepts one connection, reads its request (up to max bytes), answers it with handle(request)(state) and closes it; a request that never parses gets a 400.
- def step.socketAs step, but reply(socket)(request)(state) answers on the socket itself and must close it: for bodies the app streams through its own effect.
- def loop.next
- def serve.forServes n connections, then hands back the listener and the state.
- def serve.socket.for
- def serveServes connections forever, one at a time (unsafe: it never ends).
- def serve.socket