Closed
Description
There are situations (i.e. using TokenAuthentication) where you need to add information to the header of all communications to the server.
We need a hook for this in ServerOps.
See this SO for more info: https://stackoverflow.com/questions/55656784/token-based-authentication-in-hyperstack
To add a custom header redefine the class header
method in your Server (or Controller) Op to return a hash of the headers.
def self.headers # this runs on the client and adds custom headers
{ Authorization: '1234' }
end