Currently HubSpot does not support accessing custom headers in serverless HTTP functions. The context.headers object only includes a limited set of predefined headers.
This limitation is actually a nonsense on current state of the technology, since the Headers are a channel of passing valuable information to the script.