Skip to content

Commit 22ddd9e

Browse files
committed
feat: dotnet warnings
1 parent 550a25a commit 22ddd9e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

templates/dotnet/src/Appwrite/Client.cs.twig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,15 @@ namespace {{ spec.title | caseUcfirst }}
269269
var response = await _http.SendAsync(request);
270270
var code = (int)response.StatusCode;
271271

272+
var warnings = response.Headers.GetValues("x-{{spec.title | lower}}-warning");
273+
if (warnings != null)
274+
{
275+
foreach (var warning in warnings.Split(';')
276+
{
277+
Console.WriteLine('Warning: ', warning);
278+
}
279+
}
280+
272281
string contentType = string.Empty;
273282
if (response.Content.Headers.TryGetValues("Content-Type", out var contentTypes))
274283
{

0 commit comments

Comments
 (0)