You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: FaunaDB.Client/Client/FaunaClient.cs
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,12 +31,14 @@ public class FaunaClient
31
31
/// <param name="secret">Auth token for the FaunaDB server.</param>
32
32
/// <param name="endpoint">URL for the FaunaDB server. Defaults to "https://db.fauna.com:443"</param>
33
33
/// <param name="timeout">Timeout for I/O operations. Defaults to 1 minute.</param>
34
+
/// <param name="httpVersion">Version of http. Default value is HttpVersion.Version11, is you use .net core 3.0 and above you can enable http/2 support by passing HttpVersion.Version20</param>
Starting from version 4.0.0 of this driver (faunadb-csharp), HTTP/2 support is enabled by default for .NET standards 2.1 and above.
151
+
This means that if you use .NET core 3.1 and above (which support that standard), you'll be sending requests to Fauna on HTTP/2.
152
+
.NET standards lower than 2.1 and .NET frameworks 4.5-4.8 have HTTP/1.1 enabled as the default protocol version, since they lack of support for HTTP/2.
153
+
We've also added an optional parameter if you want to specify the version of the protocol directly:
0 commit comments