preSendHook

preSendHook(client:   JadeRestClient io;
            request:  JadeRestRequest io;
            response: JadeRestResponse io);

The preSendHook method of the JadeRestProxyHook class provides access to the JadeRestClient, JadeRestRequest, and JadeRestResponse objects that are used to execute REST requests when using proxy classes generated by the OpenAPI import wizard. (For details, see Maintaining OpenAPI Objects, in Chapter 16 of the JADE Development Environment User's Guide.)

The preSendHook method is called by the generated code of JadeRestResponse classes immediately before the execution of the REST request; that is, when all required properties have been set on the JadeRestRequest and JadeRestClient objects but no request has been sent to the REST API specification.

2020.0.01 and higher