Module http

Source
Expand description

Implements the client facing HTTP server.

Functions§

item_get 🔒
Handler for GET /{table}/{*key}
Read the key’s value.
item_list 🔒
Handler for GET /{table}
Lists this table keys.
item_set 🔒
Handler for POST /{table}/{*key}
Sets the key’s value equal to this request’s body.
main
Sets up axum’s router and starts listening for requests.
table_create 🔒
Handler for POST /
Creates a table and returns its id if successful. Expects table parameters in a form string.
table_delete 🔒
Handler for DELETE /{table}
Deletes the table.
table_list 🔒
Handler for GET /
Returns all table metadata.