grape
grape copied to clipboard
Feature Request: Support additional WebDav-specified HTTP methods, such as LOCK
https://www.rfc-editor.org/rfc/rfc4918.html defines several HTTP methods to support WebDAV-like APIs, such as LOCK and UNLOCK. Unfortunately, these methods are not supported by Grape.
As these methods are not supported, ruby apps using Grape have to use other methods, such as POST and DELETE for locking and unlocking, such as in GitLab's support for Terraform remote state: https://gitlab.com/gitlab-org/gitlab/-/issues/207345.
As these methods are not supported, ruby apps using Grape have to use other methods, such as POST and DELETE for locking and unlocking
it can be a good design actually, as any intermediary in the stack will understand common methods.
Anyway, I would not use WebDAV(WebDAV-like) as some requirement as it's certainly a different thing that uses XML under the hood. Let's try to generalize a requirement to something like "Allow HTTP method extension in Grape"