Refactor http package, add Via header