Skip to content

Commit 8b44084

Browse files
author
Matt Bernier
authored
Merge pull request #28 from dutts/patch-1
An example of displaying request headers on Client
2 parents f4dcfa9 + c6f66b4 commit 8b44084

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

TROUBLESHOOTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
If you have a non-library SendGrid issue, please contact our [support team](https://support.sendgrid.com).
2+
3+
If you can't find a solution below, please open an [issue](https://github.com/sendgrid/csharp-http-client/issues).
4+
5+
## Table of Contents
6+
7+
* [Viewing the Request Body](#request-body)
8+
9+
<a name="request-body"></a>
10+
## Viewing the Request Body
11+
12+
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).
13+
14+
e.g. on a Client instance, myClient.
15+
16+
```csharp
17+
foreach (KeyValuePair<DateTime, string> kvp in myClient.RequestHeaders)
18+
{
19+
Console.WriteLine("Name = {0}, Value = {1}", kvp.Key, kvp.Value);
20+
}
21+
```

0 commit comments

Comments
 (0)