Added support for PUT and PATCH requests.