Type alias RemoteApiRequestHandler
RemoteApiRequestHandler: ((reply) => RemoteApiCancelRequestHandler | void)
Type declaration
-
- (reply): RemoteApiCancelRequestHandler | void
-
Parameters
-
reply: ((response) => void)
-
- (response): void
-
Returns void
Returns RemoteApiCancelRequestHandler | void
Represents a Remote API request handler function. It is provided with a reply callback that must be invoked to send a response back to the lens. The reply callback can be invoked multiple times if needed. Additionally, the handler can return a cancellation callback, which is triggered when the lens cancels the request.