We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd71db commit e716b93Copy full SHA for e716b93
docs/v107/README.md
@@ -216,7 +216,7 @@ mockHttp.When("http://localhost/api/user/*")
216
.Respond("application/json", "{'name' : 'Test McGee'}"); // Respond with JSON
217
218
// Instantiate the client normally, but replace the message handler
219
-var client = new RestClient(...) { ConfigureMessageHandler = _ => mockHttp };
+var client = new RestClient(new RestClientOptions { ConfigureMessageHandler = _ => mockHttp });
220
221
var request = new RestRequest("http://localhost/api/user/1234");
222
var response = await client.GetAsync(request);
0 commit comments