Refactor variable names for clarity in response handling
Renamed variables `body` to `resBody` and `headers` to `resHeaders` to improve clarity and better reflect their association with the response object. These changes enhance code readability and maintainability without altering functionality.
This commit is contained in:
parent
2610fc8f07
commit
3b4858f5b1
@ -51,7 +51,7 @@ public class InvokeRecActionCommandHandler(
|
|||||||
httpReq.Headers.Add(header.Key, header.Value);
|
httpReq.Headers.Add(header.Key, header.Value);
|
||||||
|
|
||||||
using var response = await http.SendAsync(httpReq, cancel);
|
using var response = await http.SendAsync(httpReq, cancel);
|
||||||
var body = await response.Content.ReadAsStringAsync(cancel);
|
var resBody = await response.Content.ReadAsStringAsync(cancel);
|
||||||
var headers = response.Headers.ToDictionary();
|
var resHeaders = response.Headers.ToDictionary();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user