reply method

void reply(
  1. int statusCode,
  2. dynamic body, {
  3. Map<String, String>? headers,
  4. Duration responseDelay = Duration.zero,
})

Implementation

void reply(int statusCode, dynamic body,
    {Map<String, String>? headers,
    Duration responseDelay = Duration.zero}) async {
  this.statusCode = statusCode;
  this.body = body;
  replyHeaders = headers;
  this.responseDelay = responseDelay;

  _register();
}