Skip to main content

Module response

Module response 

Source
Expand description

Response lifecycle helpers.

A small number of pure-data helpers - constructing error responses, pairing a response with its request - live here. The connection plumbing (response send / done, queue threading) ships in Stage 9.

Functions§

link
Pair a response with its request: stamps the response’s parent id and sets the request’s selected_rsp to the response id.
make_error
Build a synthetic error response for req.
make_simple_redis
Build a synthetic Redis-status response carrying payload as the on-the-wire reply bytes.