Make flags and mech configurable in http transport