From c6f66b403d8134a4243210c6e5213d73f013c484 Mon Sep 17 00:00:00 2001 From: Richard D Date: Wed, 18 Oct 2017 18:46:41 +0100 Subject: [PATCH] An example of displaying request headers on Client Useful for debugging. --- TROUBLESHOOTING.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 TROUBLESHOOTING.md diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md new file mode 100644 index 0000000..63206ea --- /dev/null +++ b/TROUBLESHOOTING.md @@ -0,0 +1,21 @@ +If you have a non-library SendGrid issue, please contact our [support team](https://support.sendgrid.com). + +If you can't find a solution below, please open an [issue](https://github.com/sendgrid/csharp-http-client/issues). + +## Table of Contents + +* [Viewing the Request Body](#request-body) + + +## Viewing the Request Body + +When debugging or testing, it may be useful to examine the raw request body to compare against the [documented format](https://sendgrid.com/docs/API_Reference/api_v3.html). + +e.g. on a Client instance, myClient. + +```csharp +foreach (KeyValuePair kvp in myClient.RequestHeaders) +{ + Console.WriteLine("Name = {0}, Value = {1}", kvp.Key, kvp.Value); +} +```