Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • see Green fields, blue skies, and the white board - what is too broad? Commented Nov 24, 2024 at 16:54
  • My question is reasonable. How do I write an abstract HTTP client library for popular ts/js frameworks? - Not sure how I can be more specific without asking a question per framework; at which point my abstraction question would remain unanswered Commented Nov 24, 2024 at 18:10
  • Why not use fetch directly? Commented Nov 26, 2024 at 3:12
  • Because fetch isn't what's used on, for example, Angular. Its abstraction can be used, for example, to attach Bearer tokens to the Authorisation HTTP header. Commented Nov 27, 2024 at 0:04