REP-382 OpenStack Basic Auth filter creation

Since optionHeaders is an option you can do optionHeaders.map which will do these checks i'm pretty sure. the return will be an option of type your function generates or none