Add support for PUT and PATCH in prequest (#877)