InterchangeResponse.fromStringBody constructor

InterchangeResponse.fromStringBody({
  1. int statusCode = defaultStatusCode,
  2. Map<String, List<String>>? headersAll,
  3. required String string,
})

Construct from String data

Implementation

InterchangeResponse.fromStringBody({
  int statusCode = defaultStatusCode,
  Map<String, List<String>>? headersAll,
  required String string,
}) : this.fromRawBytes(
        statusCode: statusCode,
        headersAll: headersAll,
        raw: utf8.encode(string),
      );