Request Callback

RequestCB

Example: Asynchronous ConversationsAsynchronous Functions - C

Called before a request is sent.

WEB_ASYNC_CB_RC_ENUM <function name>(void);

Return Values

Returns a value of WEB_ASYNC_CB_RC_ENUM

General Information

A request callback is a user-created function. It is invoked once during the creation of each TaskClosed within the ConversationClosed. The function is called before any network processing, for example, resolve DNS, connect, and so on.

Examples of the use of a task Initialization callback:

  • Modifying a request's URL
  • Modifying a request's request body.

An example of where these modifications may be required is repetitive Asynchronous Conversation Patterns where each request should have a different index or timestamp. See Asynchronous Conversation PatternClosed

This callback can invoke these web utility functions:

C Language

Java Language

It can also call any of the general utility functions. See Utility Functions: C Language (lr_) or Utility Functions: JavaScript Language (lr.).