HTTPStatus constructor

HTTPStatus(
  1. int httpResponseCode, [
  2. String? httpPhrase
])

Implementation

HTTPStatus(this.httpResponseCode, [String? httpPhrase]) {
  httpReasonPhrase = ((httpPhrase == null) || (httpPhrase.isEmpty))
      ? httpStatusPhrases[httpResponseCode]
      : httpPhrase;
}