Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom HTTP Method and Status #399

Open
andreas-mausch opened this issue Apr 21, 2020 · 2 comments
Open

Custom HTTP Method and Status #399

andreas-mausch opened this issue Apr 21, 2020 · 2 comments

Comments

@andreas-mausch
Copy link

andreas-mausch commented Apr 21, 2020

Hi, I try to use http4k for WebDAV.
It extends HTTP with some new methods and Statuses, for example the method PROPFIND.

Now the problem is I cannot construct a Request object with that method, because the Method in http4k only defines these methods:

enum class Method { GET, POST, PUT, DELETE, OPTIONS, TRACE, PATCH, PURGE, HEAD }

Which is correct of course, these are the http methods.

And I understand http4k is for http and not for WebDAV, but maybe there is some kind of workaround?

Version: 3.243.0

Edit: The status is no problem, I can just construct it myself: Status(207, "Multi-Status")

@daviddenton
Copy link
Member

There isn't a workaround for now unless we convert Method to be an object like Status (which isn't rigid in what you can send).

@andreas-mausch
Copy link
Author

I see. Thanks for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants