Crate sled_web

Source
Expand description

A web interface to a sled::Tree.

§API

HTTP RequestDescription
GET /tree/entries/getGet a Tree entry by key.
DELETE /tree/entries/delDelete a Tree entry by key.
POST /tree/entries/setSet a new Tree entry by key/value pair.
PUT /tree/entries/casPerform a compare-and-swap.
POST /tree/entries/mergeMerge a value into an entry for a key.
POST /tree/entries/flushFlush and pending IO.
GET /tree/entries/iterIterate over all Tree entries.
GET /tree/entries/scanIterate over all Tree entries starting from a key.
GET /tree/entries/scan_rangeIterate over all Tree entries within a key range.
GET /tree/entries/maxGet the greatest Tree entry.
GET /tree/entries/predGet the Tree entry preceding a key.
GET /tree/entries/pred_inclGet the Tree entry preceding or including a key.
GET /tree/entries/succGet the Tree entry succeeding a key.
GET /tree/entries/succ_inclGet the Tree entry succeeding or including a key.

See the request module for the expected request types. The server expects the corresponding request type serialized to JSON within the Body of the received Request.

See the response::response function for the associated responses, their status and layout.

Re-exports§

pub extern crate hyper;
pub extern crate sled_search;
pub use client::Client;
pub use sled_search::sled;

Modules§

client
request
Functions to simplify the construction of requests along with request types that can be serialized to and from the JSON body.
response
server