AbstractProtectedbuildBuilds an Authorization: Bearer <token> header, omitting it entirely
when token is undefined instead of interpolating a literal
"Bearer undefined". Subclasses should use this instead of hand-rolling
their own token-header builders.
This is a template for server clients, it is a wrapper around
NetworkClientwith more features such as request payload compression, etc.