Added header, body parsing and body setting methods