Form full URI as string to be parsed in Rack::Test.

There are performance gains to be made by avoiding URI setter methods.
Merge pull request #15101 from tgxworld/improve_performance_of_building_uri

Form full URI as string to be parsed in Rack::Test.