HttpOutgoingFieldValid
function HttpOutgoingFieldValid(const aName, aValue: UnicodeString; aOctets: Boolean): Boolean;
Whether a response field may be GENERATED. The name is a token - one or more tchar, either case (RFC 9110 s5.6.2). The value holds no control character but HTAB, no DEL (RFC 9110 s5.5) and no SP or HTAB at either end (RFC 9113 s8.2.1: "A field value MUST NOT start or end with an ASCII whitespace character"). aOctets: the wire carries one octet per character, as HTTP/2 does, so a character above #255 fails as well; HTTP/1.1 writes its head as UTF-8 and passes False.