refactored http file; working on implementing edit header