Skip to content

Commit ac8cfbe

Browse files
docs(readme): add withVersion example
1 parent bc1e5b4 commit ac8cfbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ httpClientBuilder.ConfigureFormatters(opts =>
230230
opts.Default = new MessagePackMediaTypeFormatter();
231231
opts.Formatters.Add(new CustomFormatter());
232232
});
233+
234+
httpClientBuilder.WithVersion(HttpVersion.Version30) // specify to use http3 (defaults: http2)
233235
```
234236

235237
#### Re-using Http Client from Factory

0 commit comments

Comments
 (0)