reasonPhrase property
The reason phrase for the response.
If no reason phrase is explicitly set, a default reason phrase is provided.
The reason phrase must be set before the body is written to. Setting the reason phrase after writing to the response body or closing the response will throw a StateError.
Implementation
@override
String get reasonPhrase => origin.reasonPhrase;
The reason phrase for the response.
If no reason phrase is explicitly set, a default reason phrase is provided.
The reason phrase must be set before the body is written to. Setting the reason phrase after writing to the response body or closing the response will throw a StateError.
Implementation
@override
void set reasonPhrase(String reasonPhrase) {
origin.reasonPhrase = reasonPhrase;
}