Refactor HTTP parser & add directory info
Add support for HEAD request