How to handle trace head and options method in handler

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to handle trace head and options method in handler

yogesh
Does any one know how to handle trace,head and options http method by context (byMethod) in handler.

Because if we do it as below

                               ctx.byMethod(m -> m
                                .trace(() -> {

                                })

then trace method is not getting called.
rus
Reply | Threaded
Open this post in threaded view
|

Re: How to handle trace head and options method in handler

rus
byMethod only has explicit support for get, post, put, patch, delete and option.  But you can use `named` for any method you like

ctx.byMethod(m -> m.named("TRACE", () -> {

}))