GetOneHTTP static method

Future<HTTPConfig> GetOneHTTP(
  1. HTTPConfig httpConfig
)

Implementation

static Future<HTTPConfig> GetOneHTTP(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}));

  HTTPConfig newHttpConfig = await stub.getOneHTTP(httpConfig);
  channel.shutdown();
  return newHttpConfig;
}