sendTrailers abstract method

void sendTrailers({
  1. int? status,
  2. String? message,
})

Send response trailers. A trailer indicating success (status == 0) will be sent automatically when all responses are sent. This method can be used to send a different status code, if needed.

The call will be closed after calling this method, and no further responses can be sent.

Implementation

void sendTrailers({int? status, String? message});