Expaned request parser to handle headers and body content