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: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -136,13 +136,14 @@ Task delectus aut autem: completed: False
136
136
137
137
It's cool, isn't it?
138
138
139
+
### Default JSON serializer
140
+
You can change the default `JsonSerializerOptions` by modifying the singlton reference at `HttpClientHelper.DefaultJsonSerializerOptions`. In the default implementation `JsonSerializerOptions.PropertyNameCaseInsensitive` is set to `true` to cover most use cases.
141
+
139
142
### About `HttpClient` injection
140
143
141
144
The tool automatically adds a constructor with a `HttpClient` parameter in the generated code but you can provide
142
145
a `HttpClient` instance manually by using one of the following methods:
143
146
144
-
#### Default JSON serializer
145
-
You can change the default `JsonSerializerOptions` by modifying the singlton reference at `HttpClientHelper.DefaultJsonSerializerOptions`. In the default implementation `JsonSerializerOptions.PropertyNameCaseInsensitive` is set to `true` to cover most use cases.
146
147
#### Introducing a field or property
147
148
148
149
If you add a constructor and provide a `HttpClient` field or property, the generator will use that field:
0 commit comments