HTTPCORE-361: Reduced intermediate garbage generated by for-each loops

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk@1544961 13f79535-47bb-0310-9956-ffa450edef68