ADD: Allow header to insert in the request

I am trying to allow header to be set in the search request so that i can do things like basic authentication.