HttpResponse constructor

HttpResponse(
  1. int statusCode, [
  2. String? statusText,
  3. Object? content
])

Constructs a new instance of HttpResponse with the specified status code, message and binary content.

statusCode The status code of the response.

statusText The status message of the response.

content The content of the response.

Implementation

HttpResponse(this.statusCode, [this.statusText, this.content]);