defaultMaxHeaderBytes static method
Four times what policy admits as one request's head: the method path,
the metadata text, the : and CRLF around each header, and the request
line. A block a little over the policy still reaches the server and is
refused with its reason; one far over it is cut before dart:io holds it.
Implementation
static int defaultMaxHeaderBytes(RpcSecurityPolicy policy) =>
4 *
(policy.maxMethodPathLength +
policy.maxMetadataBytes +
4 * policy.maxHeaders +
1024);