deadline property

  1. @override
Duration? get deadline
override

Set and get the deadline for the response. The deadline is timed from the time it's set. Setting a new deadline will override any previous deadline. When a deadline is exceeded, the response will be closed and any further data ignored.

To disable a deadline, set the deadline to null.

The deadline is null by default.

Implementation

@override
Duration? get deadline => origin.deadline;
  1. @override
set deadline (Duration? deadline)
override

Set and get the deadline for the response. The deadline is timed from the time it's set. Setting a new deadline will override any previous deadline. When a deadline is exceeded, the response will be closed and any further data ignored.

To disable a deadline, set the deadline to null.

The deadline is null by default.

Implementation

@override
void set deadline(Duration? deadline) {
  origin.deadline = deadline;
}