Added support for methods other than GET