Response<D extends OutboundDocument> constructor

Response<D extends OutboundDocument>(
  1. int statusCode, {
  2. D? document,
})

Implementation

Response(int statusCode, {this.document}) : super(statusCode) {
  if (document != null) {
    headers['Content-Type'] = mediaType;
  }
}