CreateOneHTTP static method
Future<HTTPConfig>
CreateOneHTTP(
- HTTPConfig httpConfig
)
Implementation
static Future<HTTPConfig> CreateOneHTTP(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 httpConfigResponse = await stub.createOneHTTP(httpConfig);
print('httpConfigResponse: ${httpConfigResponse}');
channel.shutdown();
return httpConfigResponse;
}