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
With the Codeunit "Rest Client" from the System Application I believe it's a best pratice to no longer use the HttpClient object directly and handeling the http-calls through this implementation.
I'm unsure of this rule could create false positives, where there are cases where the "Rest Client" codeunit isn't sufficient and the need is there to use the HttpClient object directly?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
With the Codeunit "Rest Client" from the System Application I believe it's a best pratice to no longer use the HttpClient object directly and handeling the http-calls through this implementation.
The was a great session on this on the BC TechDays: Http Communication Best Practices.
Example with HttpClient object
Example with "Rest Client" codeunit
I'm unsure of this rule could create false positives, where there are cases where the "Rest Client" codeunit isn't sufficient and the need is there to use the HttpClient object directly?
Beta Was this translation helpful? Give feedback.
All reactions