Sending an Event
To send an event as a request encapsulating request headers as properties.
Signature
Event sendRequest(String url, SimpleEvent requestEvent, String responseEventURI, long timeoutMillis, Object httpConnectionInfo)
Description
This function sends an event as a response to the request.
You can disable the cookies using the
disableCookies()
function. To ensure that the entire message along with the response header and the request body is sent at once, use
disableExpectContinueHeader()
.
Parameters
Name | Type | Description |
---|---|---|
url |
String |
The URL for the endpoint that will receive this request. |
requestEvent |
SimpleEvent |
The event to serialize and send to the server. |
responseEventURI |
String |
The fully qualified path of an event. This event is created when the response is received. |
timeoutMillis |
Long |
The timeout interval for the operation.
If the value is
|
httpConnectionInfo |
Object |
HTTP Connection Info object. |
Returns
Type | Description |
---|---|
Event |
An event as a response to the request |