[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU
From: |
Helmut Eller |
Subject: |
Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?] |
Date: |
Sun, 20 Dec 2020 16:23:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Sun, Dec 20 2020, Stefan Monnier wrote:
>> Emacs definitely needs an alternative to url.el. It has some issues
>> that are not easily solved nor worked around, such as potentially
>> calling callbacks multiple times[0], requests not timing out, and some
>> of its API being in the form of undocumented variables that must be
>> let-bound around calls to its functions.
>
> We should improve the API, indeed. Would you be interested in working
> on that?
>
> Extra bonus points if we can write a simple "`request` emulation layer"
> on top of it ;-)
>
> We should also fix the bugs: the multiple callbacks issue shouldn't be
> hard to trackdown and fix.
I think it's worth looking at the fetch API[1] for inspiration.
Especially using Javascript-like promises consistently would help. Many
people will be familiar with the Javascript API and it's just a lot
easier to steal a (non-perfect) design than to come up with something
better.
Helmut
[1] https://fetch.spec.whatwg.org/#fetch-api
- How to contribute new package to GNU ELPA?, stardiviner, 2020/12/17
- Re: How to contribute new package to GNU ELPA?, Stefan Monnier, 2020/12/19
- Re: How to contribute new package to GNU ELPA?, stardiviner, 2020/12/19
- Re: How to contribute new package to GNU ELPA?, Stefan Monnier, 2020/12/19
- Re: How to contribute new package to GNU ELPA?, stardiviner, 2020/12/19
- Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Adam Porter, 2020/12/20
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Daniel Brooks, 2020/12/20
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], David Engster, 2020/12/20
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Lars Ingebrigtsen, 2020/12/20
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Stefan Monnier, 2020/12/20
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?],
Helmut Eller <=
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Daniel Brooks, 2020/12/20
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Jean Louis, 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Richard Stallman, 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Stefan Monnier, 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Richard Stallman, 2020/12/22
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Philip K., 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Eli Zaretskii, 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Arthur Miller, 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Eli Zaretskii, 2020/12/21
- Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?], Arthur Miller, 2020/12/21