pub async fn request_received<F, Fut>(cb: F)where
    F: FnOnce(Vec<(String, String)>, HashMap<String, Value>, Vec<u8>) -> Fut,
    Fut: Future<Output = ()>,
Expand description

Register a callback closure with the query and body of the request for the lambda service.

The query is formed as a HashMap. For example, say the entrypoint of the lambda service is https://code.flows.network/lambda/6rtSi9SEsC?param=hello then the query will look like HashMap("param", Value::String("hello"))

The body is the raw bytes of the request body.