CloudflareResponse.text constructor
CloudflareResponse.text(})
Provides the declared Cloudflare API member.
Implementation
factory CloudflareResponse.text(
String body, {
int status = 200,
Map<String, String> headers = const <String, String>{},
}) {
return CloudflareResponse(
body: body,
status: status,
headers: <String, String>{
'content-type': 'text/plain; charset=utf-8',
...headers,
},
);
}