Exposed sync parameter of request for debugging/test purposes

master
Elis Axelsson 9 years ago
parent 44364f4f03
commit 1a1144f563
No known key found for this signature in database
GPG Key ID: D57EFA625C9A925F
  1. 4
      webpaste.el

@ -66,6 +66,7 @@ each run.")
(parser 'buffer-string) (parser 'buffer-string)
(post-data '()) (post-data '())
(no-failover nil) (no-failover nil)
(sync nil)
post-field post-field
success) success)
"Macro to create the lambda function for a provider. "Macro to create the lambda function for a provider.
@ -84,6 +85,8 @@ Usage:
:post-data Default post fields sent to service. Defaults to nil. :post-data Default post fields sent to service. Defaults to nil.
:post-field Name of the field to insert the code into. :post-field Name of the field to insert the code into.
:no-failover Set to t to not allow doing failovers, Defaults to nil. :no-failover Set to t to not allow doing failovers, Defaults to nil.
:sync Set to t to wait until request is done. Defaults to nil.
This should only be used for debugging purposes.
:success Callback sent to `request`, look up how to write these in the :success Callback sent to `request`, look up how to write these in the
documentation for `request`" documentation for `request`"
(lambda (text) (lambda (text)
@ -98,6 +101,7 @@ Usage:
:data post-data :data post-data
:parser parser :parser parser
:success success :success success
:sync sync
:error :error
(cl-function (lambda (&key error-thrown &allow-other-keys) (cl-function (lambda (&key error-thrown &allow-other-keys)
(message "Got error: %S" error-thrown) (message "Got error: %S" error-thrown)

Loading…
Cancel
Save