exact method

Future<Response> exact({
  1. int? statusCode,
  2. String? body,
  3. List<int>? bytes,
  4. String? mimeType,
  5. String? encoding,
  6. Map<String, String>? headers,
  7. int? contentLength,
  8. Map<String, dynamic> pathParams = const {},
})

Implementation

Future<ht.Response> exact({
  int? statusCode,
  String? body,
  List<int>? bytes,
  String? mimeType,
  String? encoding,
  Map<String, String>? headers,
  int? contentLength,
  Map<String, dynamic> pathParams = const {},
}) async {
  final resp = await go(pathParams: pathParams);
  resp.exact(
    statusCode: statusCode,
    body: body,
    bytes: bytes,
    mimeType: mimeType,
    encoding: encoding,
    headers: headers,
    contentLength: contentLength,
  );
  return resp;
}