GetAllHTTP static method
Future<HTTPList>
GetAllHTTP(
- Device device
)
Implementation
static Future<HTTPList> GetAllHTTP(mobile.Device device) async {
final channel = await Channel.getServerChannel(device.runId);
SessionConfig sessionConfig = await SessionApi.getOneSession(device.runId);
final stub = server.HttpManagerClient(channel,
options: CallOptions(metadata: {'jwt': sessionConfig.token}));
server.Device sdevice = server.Device();
sdevice.runId = device.runId;
sdevice.addr = device.addr;
sdevice.mac = device.mac;
sdevice.description = device.description;
HTTPList httpList = await stub.getAllHTTP(sdevice);
channel.shutdown();
return httpList;
}