It it possible to use Javalin with non-standard HTTP methods such as PROPFIND and MKCOL (webdav methods)?
As far as I can see, the only ways of defining a handler involve using a HandlerType and that seems to have a hard-coded list of HTTP methods. The only thing I thought of would be using a before handler and checking the raw HTTP request method i.e.
javalin.before("/path"){ ctx ->
if(ctx.req().method == "PROPFIND"){
//do propfind logic then do an early return
return@before
}
ctx.status(404)
}
I could potentially wrap that in a method which took a path, a method string and a lambda, but am I likely to hit other issues if I'm using non-standard HTTP verbs? Or is there an inbuilt way to do this?
It it possible to use Javalin with non-standard HTTP methods such as PROPFIND and MKCOL (webdav methods)?
As far as I can see, the only ways of defining a handler involve using a HandlerType and that seems to have a hard-coded list of HTTP methods. The only thing I thought of would be using a before handler and checking the raw HTTP request method i.e.
I could potentially wrap that in a method which took a path, a method string and a lambda, but am I likely to hit other issues if I'm using non-standard HTTP verbs? Or is there an inbuilt way to do this?