Added data parameter (PUT, POST) to the Client constructor