null parameters are not added to query string
added support for header parameters