I tried to add custom header "api_key" into the client request but simple bridge seems not picking up the header.
Chicago boss which uses simple bridge has a list of valid headers but then how can I use custom header then? Can't I?
I tried to add custom header "api_key" into the client request but simple bridge seems not picking up the header.
Chicago boss which uses simple bridge has a list of valid headers but then how can I use custom header then? Can't I?
Copyright © 2021 Jogjafile Inc.
You can detect a header in a controller or in a filter.
First method in a controller
Read a header from the request in a controller. Let's say that we need to answer a request based on what the client can accept, then you can do something like this.
Second method using filters:
create a file under the src/lib following the pattern ProjectName_FilterName_filter.erl
then you must install the filter in your boss.config inside the boss configs
For more information how to use filters see here