Skip to main content

handle_get

Function handle_get 

Source
pub async fn handle_get<O: GetObject, B: JmapBackend>(
    backend: &B,
    caller: &B::CallerCtx,
    args: Value,
) -> Result<HandlerOutput, JmapError>
Expand description

Generic */get handler (RFC 8620 §5.1).

Fetches objects by id (or all objects when ids is absent or null) and returns the standard get response shape. Returns the method-level requestTooLarge error when ids holds more entries than JmapBackend::max_objects_in_get allows; a null ids is not counted.