httpPost top-level constant

const httpPost = const HTTPMethod("post")

Binds an HTTPController responder method to HTTP POST.

HTTPController methods with this metadata will be invoked for HTTP POST requests. For example, the following controller invokes createUser when it receives an HTTP POST request:

    class UserController extends HTTPController {
      Future<Response> createUser() async
        => new Response.ok(createUserFromMap(id, request.body.asMap()));


const HTTPMethod httpPost = const HTTPMethod("post")