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:
@@ -51,7 +51,7 @@ public class InvokeRecActionCommandHandler(
|
||||
httpReq.Headers.Add(header.Key, header.Value);
|
||||
|
||||
using var response = await http.SendAsync(httpReq, cancel);
|
||||
var body = await response.Content.ReadAsStringAsync(cancel);
|
||||
var headers = response.Headers.ToDictionary();
|
||||
var resBody = await response.Content.ReadAsStringAsync(cancel);
|
||||
var resHeaders = response.Headers.ToDictionary();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user