Skip to content

Commit 3519080

Browse files
alexeyzimarevclaude
andcommitted
Document MergedParameters property in response docs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0015698 commit 3519080

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/docs/usage/response.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ Response object contains the following properties:
2828
| `ErrorException` | `Exception?` | Exception thrown when executing the request, if any. |
2929
| `Version` | `Version?` | HTTP protocol version of the request. |
3030
| `RootElement` | `string?` | Root element of the serialized response content, only works if deserializer supports it. |
31+
| `MergedParameters` | `ParametersCollection` | Combined view of request parameters and client default parameters at execution time. |
32+
33+
### Merged parameters
34+
35+
The `MergedParameters` property provides a combined view of the request's own parameters and the client's [default parameters](request.md#request-headers) as they were at execution time. This is useful for logging or debugging the full set of parameters that were applied to a request, since `Request.Parameters` only contains the parameters added directly to the request.
36+
37+
```csharp
38+
var response = await client.ExecuteAsync(request);
39+
40+
foreach (var param in response.MergedParameters) {
41+
Console.WriteLine($"{param.Name} = {param.Value} ({param.Type})");
42+
}
43+
```
3144

3245
In addition, `RestResponse<T>` has one additional property:
3346

0 commit comments

Comments
 (0)