Expand description
Backtalk is an experimental mini-library for writing asynchronous, realtime JSON web APIs served
over HTTP. If you’re getting started, it’s probably easiest to dive into the examples in the
examples
folder, which should be well-documented with comments.
Backtalk is still being refined, but (especially once we build a database adapter for a proper database) it should be useful enough at this point to build real things with it! If you have feedback, comments, suggestions, pull requests, bug reports, they’d be much appreciated, since I don’t really know what I’m doing tbqh.
Modules§
Structs§
- Error
- An error response to be sent back to the client.
- Reply
- A successful response with JSON data to be sent back to the client.
- Request
- A request containing data from the client.
- Sender
- Sends JSON objects over a realtime stream to a single connected client
- Server
- Routes requests to various
Handler
s based on the request URL, and runs the actual HTTP server and async event loop.
Enums§
- Error
Kind - A type of error, for instance “Bad Request” or “Server Error”.
- Json
Value - Represents any valid JSON value.
- Method
- A type of request, for instance “List” or “Post”.
Traits§
- Adapter
- Converts a Request to a static Reply from a database.
- Channel
- Converts a Request into a streaming Reply, and routes incoming messages to outgoing streams.
- Handler
- Anything that returns a future reply for a request.