notifyRequestWillBeSent static method

void notifyRequestWillBeSent(
  1. int engineId,
  2. String requestId,
  3. String requestContent
)

network notification, when network a request will be sent to server

Implementation

static void notifyRequestWillBeSent(
  int engineId,
  String requestId,
  String requestContent,
) {
  var contentPtr = requestContent.toNativeUtf16();
  var requestIdPtr = requestId.toNativeUtf16();
  _BridgeFFIManager.instance.notifyNetworkEvent(
    engineId,
    requestIdPtr,
    NetworkEventType.requestWillBeSent.index,
    contentPtr,
    nullptr,
  );
  free(contentPtr);
  free(requestIdPtr);
}