CloudflareResponse.bytes constructor

CloudflareResponse.bytes(
  1. Uint8List body, {
  2. int status = 200,
  3. Map<String, String> headers = const <String, String>{},
})

Provides the declared Cloudflare API member.

Implementation

factory CloudflareResponse.bytes(
  Uint8List body, {
  int status = 200,
  Map<String, String> headers = const <String, String>{},
}) {
  return CloudflareResponse(body: body, status: status, headers: headers);
}