added support for dynamic HTTP header and client option generation via a duck-typed factory parameter
added support for dynamic HTTP header and client option generation via a duck-typed factory parameter