-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
currently the servers do not support batch requests.
To fix:
- introduce
pub struct RequestBatch
- add single response on parse failure
- check for empty response arrays
To consider:
- memory impact wrt the underlying
Bytes
buffer of a batch - should the multiplexing be in the
Router
Specification requirements:
- The Server should respond with an Array containing the corresponding Response objects, after all of the batch Request objects have been processed.
- A Response object SHOULD exist for each Request object, except that there SHOULD NOT be any Response objects for notifications.
- If the batch rpc call itself fails to be recognized as an valid JSON or as an Array with at least one value, the response from the Server MUST be a single Response object.
- If there are no Response objects contained within the Response array as it is to be sent to the client, the server MUST NOT return an empty Array and should return nothing at all.
Spec Notes:
- The Response objects being returned from a batch call MAY be returned in any order within the Array.
Metadata
Metadata
Assignees
Labels
No labels