- Simple, discoverable API
- Reduce boilerplate
(straight-use-package
'(fetch :type git :host github :repo "ebpa/fetch.el" :files ("*.el")))
(fetch "https://www.gnu.org/software/emacs")
(fetch "https://www.gnu.org/software/emacs"
:callback (lambda (response)
(message "The response status code is %d" (fetch-response-status-code response))))
(promise-chain
(fetch "https://www.gnu.org/software/emacs" :promise t)
(then #'fetch-html)
(then (lambda (html)
(message "%s" html))))