Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

HTTP support #13

Open
dlemper opened this issue Jul 31, 2019 · 0 comments
Open

HTTP support #13

dlemper opened this issue Jul 31, 2019 · 0 comments
Labels
design enhancement New feature or request

Comments

@dlemper
Copy link
Collaborator

dlemper commented Jul 31, 2019

This represents the implementation for HTTP communication, which may be the base for Github and Nextcloud support on the client side.

There are two native methods for HTTP communication in the browser:

  • XMLHttpRequest
  • fetch

fetch is the newer one and preferred over XMLHttpRequest, if the browser supports it (all recent browsers do). There is also a polyfill available.

In addition there are quite a few libraries, like axios, which use either fetch or XMLHttpRequest to provide a better experience at development at the cost of more code.

In our case, I would suggest building a thin wrapper around fetch to accomplish everything needed.

@dlemper dlemper added enhancement New feature or request design labels Jul 31, 2019
@dlemper dlemper self-assigned this Jul 31, 2019
@dlemper dlemper removed their assignment Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant