Update exemple file
HTTP method is now a parameter of constructor