The serviceLib.getOriginalRequest() system function provides access to an HTTP request. If the function is invoked in a callback or onException function, the HTTP request was sent to the service during the specific call that caused the service to invoke the callback or onException function. If serviceLib.getOriginalRequest() is invoked elsewhere, the HTTP request was sent to the service during the most recent invocation of the call statement; and in the absence of a previous call statement, the HTTP request fields are empty.
result HTTPRequest = serviceLib.getOriginalRequest()
The invocation returns a record that is based on the Record part HTTPRequest, which is provided for you and has the following fields: