There's an RFC for header encoding - we could adapt at least parts of it - https://www.rfc-editor.org/rfc/rfc8941
There's an RFC for header encoding - we could adapt at least parts of it - https://www.rfc-editor.org/rfc/rfc8941