added put, post, head, patch and delete methods