httpDelete = const HTTPMethod("delete")

Binds an HTTPController responder method to HTTP DELETE.

HTTPController methods with this metadata will be invoked for HTTP DELETE requests if their HTTPPath arguments match the HTTPRequestPath.variables of the incoming request. For example, the following controller invokes deleteUser when it receives an HTTP DELETE request:

    class UserController extends HTTPController {
      @httpDelete
      Future<Response> deleteUser(@HTTPPath("id") int id) async
        => new Response.ok(removeUser(id));
    }