Routing non-standard HTTP methods

It may be necessary to support a non-standard HTTP method for a client or server. Specifications like RFC-4918 Webdav require additional methods like REPORT or LOCK for example. To support that use case the @CustomHttpMethod annotation can be used.

RoutingExample

  1. @CustomHttpMethod(method = "LOCK", value = "/{name}")
  2. String lock(String name)

The annotation can be used anywhere any of the standard method annotations can be used, including controllers and declarative http clients.