Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

HandlerFunctions

HandlerFunctions
is an option for asynchronous operations that specifies functions to apply when events are generated.

DetailsDetails

  • The typical setting for HandlerFunctions is "event1"->f1,"event2"->f2,, which specifies that when eventi is generated, the function fi should be applied to an association whose elements are specified by HandlerFunctionsKeys.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Handle the "BodyReceived" event when it is generated by URLSubmit:

In[1]:=
Click for copyable input
Out[1]=

Store the headers with a variable when they are received:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Print the status code and content type when the task is finished:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2016
(11.0)