2
0

CLI: Add Status Code to output

This commit is contained in:
glax 2023-08-29 14:11:46 +02:00
parent f4bc182954
commit e274c864f9

View File

@ -112,6 +112,7 @@ internal sealed class TrangaCli : Command<TrangaCli.Settings>
if (AnsiConsole.Confirm("Send Request?")) if (AnsiConsole.Confirm("Send Request?"))
response = client.Send(request); response = client.Send(request);
else break; else break;
AnsiConsole.WriteLine($"Response: {(int)response.StatusCode} {response.StatusCode}");
AnsiConsole.WriteLine(response.Content.ReadAsStringAsync().Result); AnsiConsole.WriteLine(response.Content.ReadAsStringAsync().Result);
break; break;
case "Log": case "Log":