put HTTP request parsing part into a module