Adds helpers for working with the Refit RESTful API consumer library.
For general details about and on using the Helpful Libraries see the root Readme.
RefitHelper
: Adds shortcuts for creating Refit API clients from interfaces. (Note: as of OC 2.0Newtonsoft.Json
has been deprecated so methods likeRefitHelper.WithNewtonsoftJson<T>()
are marked obsolete.)
SimpleTextResponse
: An simplified container for the content, headers and some other metadata fromApiResponse<string>
. This way theApiResponse<string>
can be disposed early and doesn't have to be carried around which would be a potential memory leak risk.