Improving Web layer, put public method to define headers of a Http connection