|
From: | Daniel Brooks |
Subject: | Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?] |
Date: | Sun, 20 Dec 2020 08:02:57 -0800 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Helmut Eller <eller.helmut@gmail.com> writes: > 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 That is a good idea; the fetch API is quite nice. The URL[1] and URLSearchParams[2] APIs are also really important; they make it unnecessary to ever parse urls or build urls up through string concatenation. [1] https://developer.mozilla.org/en-US/docs/Web/API/URL [2] https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
[Prev in Thread] | Current Thread | [Next in Thread] |