Lombiq Helpful Libraries - Refit Libraries for Orchard Core
May 10, 2024 ยท View on GitHub
About
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.
Helpers
RefitHelper: Adds shortcuts for creating Refit API clients from interfaces. (Note: as of OC 2.0Newtonsoft.Jsonhas been deprecated so methods likeRefitHelper.WithNewtonsoftJson<T>()are marked obsolete.)
Models
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.