deadline property Null safety

Duration? deadline
read / write

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.


Duration? deadline