Claire Novotny
0dd5a2293c
Rename IContentSerializer to IHttpContentSerializer and related methods to better reflect what it does
2021-02-04 17:28:39 -05:00
Claire Novotny
1e62b20fe6
Wrap Deserialization exceptions as an ApiException
2020-12-09 10:19:43 -05:00
Claire Novotny
fc263f9da9
First pass at NRT annotations
2020-11-25 16:52:50 -05:00
Claire Novotny
765ef2cac5
Update the default serializer to use System.Text.Json
2020-11-25 11:25:47 -05:00
Drake Lambert
f758e8104c
Merge branch 'master' into keep-string-content-on-validation-exception
2020-09-18 10:15:15 -05:00
Oleksandr Liakhevych
0abca64113
Add ability to provide custom ExceptionFactory
2020-09-04 15:28:42 +03:00
Drake Lambert
cb0267f4fe
Support string ApiException.Content when actual
...
type is ValidationApiException.
fixes reactiveui/refit#636
2020-07-31 08:48:41 -05:00
Sergio Pedri
b70e4918fb
Removed unnecessary using directives
2020-02-10 14:21:38 +01:00
Hans De Mulder
ac4188e662
check for null values in handling (exception) content
2019-04-07 19:03:04 +02:00
Oren Novotny
00b9d8185b
Code style formatting
2019-02-16 17:11:56 -05:00
Steve Ward
6d3a5f4742
Added missing ConfigureAwait(false) & fixed deadlock on ValidationApiException.Content
2018-11-26 22:01:42 +00:00
Steve Ward
7a387ed26d
Changes made in response to PR feedback
...
IContentSeriaizer
- all methods made async
- removed 2nd deserialize method
- type safe operation
ApiException
- Added GetContentAsAsync<T>() method
- Marked GetContentAs<T>() as obsolete
2018-11-26 20:16:07 +00:00
Steve Ward
27d6fb4865
Isolated Content Serialization
...
- Added IContentSerializer, JsonContentSerializer, XmlContentSerializer
- RefitSettings allows the IContentSerializer to be specified
- Refit defaults to JsonContentSerializer for back-compat
- Tests modified to exercise Json and Xml Serialization
- .NET Standard 1.4 has package dep on System.Xml.XmlSerializer
2018-11-14 20:28:05 +00:00
Fanie Reynders
2b89e4f7ad
Added support for handling validation-based exceptions according to the RFC 7807 specification.
2018-11-09 10:38:36 +01:00
Oren Novotny
38961a7a56
Add serializable attribute
2018-10-05 19:22:52 -04:00
Oren Novotny
0e3b7e5077
Add request to ApiException #409
2018-01-28 12:50:46 -05:00
windischb
2a048ddea7
MethodOverload ( #416 )
...
Fixes #82
2018-01-27 16:50:46 -05:00
Oren Novotny
2cc549bf06
Reformat code to be consistent
2018-01-14 14:58:24 -05:00
Oren Novotny
fd381f4432
Extract types to files
2017-06-21 11:58:02 -04:00