extractV2 method

  1. @override
Future<(Request, ContextV2)> extractV2({
  1. required FfiUrl ohttpProxyUrl,
})

Implementation

@override
Future<(common.Request, ContextV2)> extractV2({
  required FfiUrl ohttpProxyUrl,
}) async {
  try {
    final res = await super.extractV2(
      ohttpProxyUrl: ohttpProxyUrl,
    );
    final request = common.Request(
      url: await Url.fromStr((res.$1.url.asString())),
      body: res.$1.body,
    );
    return (request, ContextV2._(field0: res.$2.field0));
  } on error.PayjoinError catch (e) {
    throw mapPayjoinError(e);
  }
}