emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/request e9db345d11 1/6: autoload cookies for api functions


From: ELPA Syncer
Subject: [nongnu] elpa/request e9db345d11 1/6: autoload cookies for api functions
Date: Tue, 15 Nov 2022 12:02:26 -0500 (EST)

branch: elpa/request
commit e9db345d11a6b379df3773b7e348dd3ea7f9bcf1
Author: Tom Regner <tom@goochesa.de>
Commit: GitHub <noreply@github.com>

    autoload cookies for api functions
    
    add autoload cookies to functions and macro-defined functions
---
 request.el | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/request.el b/request.el
index 364336b86c..c7d0321687 100644
--- a/request.el
+++ b/request.el
@@ -195,9 +195,11 @@ for older Emacs versions.")
 
 \(fn RESPONSE)")))
 
+;;;###autoload (autoload 'request-response-status-code "request.el")
 (request--document-response request-response-status-code
   "Integer HTTP response code (e.g., 200).")
 
+;;;###autoload (autoload 'request-response-history "request.el")
 (request--document-response request-response-history
   "Redirection history (a list of response object).
 The first element is the oldest redirection.
@@ -217,30 +219,37 @@ request-response-header               yes            no
 other functions                       no             no
 ==================================== ============== ==============")
 
+;;;###autoload (autoload 'request-response-data "request.el")
 (request--document-response request-response-data
   "Response parsed by the given parser.")
 
+;;;###autoload (autoload 'request-response-error-thrown "request.el")
 (request--document-response request-response-error-thrown
   "Error thrown during request.
 It takes the form of ``(ERROR-SYMBOL . DATA)``, which can be
 re-raised (`signal'ed) by ``(signal ERROR-SYMBOL DATA)``.")
 
+;;;###autoload (autoload 'request-response-symbol-status "request.el")
 (request--document-response request-response-symbol-status
   "A symbol representing the status of request (not HTTP response code).
 One of success/error/timeout/abort/parse-error.")
 
+;;;###autoload (autoload 'request-response-url "request.el")
 (request--document-response request-response-url
   "Final URL location of response.")
 
+;;;###autoload (autoload 'request-response-done-p "request.el")
 (request--document-response request-response-done-p
   "Return t when the request is finished or aborted.")
 
+;;;###autoload (autoload 'request-response-settings "request.el")
 (request--document-response request-response-settings
   "Keyword arguments passed to `request' function.
 Some arguments such as HEADERS is changed to the one actually
 passed to the backend.  Also, it has additional keywords such
 as URL which is the requested URL.")
 
+;;;###autoload
 (defun request-response-header (response field-name)
   "Fetch the values of RESPONSE header field named FIELD-NAME.
 
@@ -265,6 +274,7 @@ Examples::
 ;;    (see https://tools.ietf.org/html/rfc2616.html#section-4.2).
 ;;    Python's requests module does this too.
 
+;;;###autoload
 (defun request-response-headers (response)
   "Return RESPONSE headers as an alist.
 I would have chosen a function name that wasn't so suggestive that
@@ -553,6 +563,7 @@ and requests.request_ (Python).
                        (buffer-substring (point-min) (min (1+ (point)) 
(point-max))))
           (delete-region (point-min) (min (1+ (point)) (point-max))))))))
 
+;;;###autoload
 (defun request-untrampify-filename (file)
   "Return FILE as the local file name."
   (or (file-remote-p file 'localname) file))
@@ -668,6 +679,7 @@ RESPONSE via ENCODING."
                  (request-response-settings response))
           (setq done-p t))))))
 
+;;;###autoload
 (defun request-abort (response)
   "Abort request for RESPONSE (the object returned by `request').
 Note that this function invoke ERROR and COMPLETE callbacks.
@@ -1145,6 +1157,7 @@ See info entries on sentinels regarding PROC and EVENT."
               (or error (and (numberp code) (>= code 400) `(error . (http 
,code)))))
         (apply #'request--callback buffer settings))))))
 
+;;;###autoload
 (defun request-auto-revert-notify-rm-watch ()
   "Backport of M. Engdegard's fix of `auto-revert-notify-rm-watch'."
   (let ((desc auto-revert-notify-watch-descriptor)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]