Share this page

# Asynchronous Functions - JavaScript

Click one of the following functions for more information:

web.regAsyncAttributes | Registers the next action function that has requests and responses with the specified URL as the beginning of an Asynchronous Conversation An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..
web.stopAsync | Stops the specified Asynchronous Conversation An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled. including all its active and future tasks.
web.sync | Suspends the Vuser script execution until the specified parameter exists.
web.utilSetRequestBody | Sets a string to be the request body for the next request sent in the Conversation An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..
web.utilSetRequestHeader | Sets a string to be the request header and value for the next request sent in the Conversation An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..
web.utilSetRequestUrl | Sets a string to be the request url for the next request sent in the Conversation An Asynchronous Conversation is a series of related web tasks, including tasks caused by redirection. An Asynchronous Conversation starts with the request for the desired response, includes all the requests and responses that are caused by this request (authentication, redirection, and so on) and ends when the desired response is received or when the series of interactions is canceled..

## Callbacks

Name | Syntax | Description
--- | --- | ---
Request Callback | RequestCB | Called before a request is sent, allowing you to modify a request's URL and body.
Response Callback | ResponseCB | Called once at the end of a conversation when complete response is received. May not be called For “Push” conversation.
Response Body Buffer Callback | ResponseBodyBufferCB | Called on receiving portions of response body content for “Push” conversation
Response Header Buffer Callback | ResponseHeadersCB | Called once on receiving response headers for “Push” conversation.

For more details about asynchronous functions, see Asynchronous Support-C Language Web.

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: