DeleteOneHTTP static method

Future<void> DeleteOneHTTP(
  1. HTTPConfig httpConfig
)

Implementation

static Future<void> DeleteOneHTTP(HTTPConfig httpConfig) async {
  final channel = await Channel.getServerChannel(httpConfig.runId);
  SessionConfig sessionConfig =
      await SessionApi.getOneSession(httpConfig.runId);
  final stub = server.HttpManagerClient(channel,
      options: CallOptions(metadata: {'jwt': sessionConfig.token}));

  await stub.deleteOneHTTP(httpConfig);
  channel.shutdown();
}