patch<T> method

void patch<T>(
  1. String path,
  2. FutureOr<T> closure(
    1. HttpRequest request
    )
)

Registers a PATCH route that responds to with the result of the closure.

Implementation

void patch<T>(
        String path, FutureOr<T> Function(HttpRequest request) closure) =>
    on(closure, method: 'PATCH', path: path);