Validates that serialised API requests do not exceed the server's maxSizeRequest limit.
Request Size Limits (RFC 8620 Section 3.2):
Enforces the maxSizeRequest limit defined in the Core capability object
Measures the total size of the serialised request body in bytes
This limit applies after the request has been serialised (JSON stringified and encoded)
Prevents requests that would be rejected with a requestTooLarge error
The server defines this limit based on available memory, bandwidth, and processing capacity
This validation runs during the post-serialization lifecycle hook, checking the actual
wire format size. It handles various body formats (string, Blob, ArrayBuffer) and provides
human-readable error messages in megabytes.
Example:
If a server sets maxSizeRequest: 10000000 (10 MB), attempting to send a request with
a large Email/import containing 15 MB of email data would be caught and reported as
"Request size (15.00 MB) exceeds server limit of 10.00 MB".
Validates that serialised API requests do not exceed the server's
maxSizeRequestlimit.Request Size Limits (RFC 8620 Section 3.2):
maxSizeRequestlimit defined in the Core capability objectrequestTooLargeerrorThis validation runs during the
post-serializationlifecycle hook, checking the actual wire format size. It handles various body formats (string, Blob, ArrayBuffer) and provides human-readable error messages in megabytes.Example: If a server sets
maxSizeRequest: 10000000(10 MB), attempting to send a request with a large Email/import containing 15 MB of email data would be caught and reported as "Request size (15.00 MB) exceeds server limit of 10.00 MB".