grape icon indicating copy to clipboard operation
grape copied to clipboard

Feature Request: Support additional WebDav-specified HTTP methods, such as LOCK

Open tculp opened this issue 3 years ago • 1 comments

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.

tculp avatar Feb 17 '22 20:02 tculp

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"

dm1try avatar Feb 17 '22 22:02 dm1try