Change to allow for setting headers.
Ensure local params trump connection options.