Skip to content
Lattice

IIsmpModule

Git Source

The callbacks the IsmpHost invokes on a registered ISMP module.

Functions

onAccept

Called by the IsmpHost to notify the module of a new proof-verified POST request.

function onAccept(IncomingPostRequest memory incoming) external;

Parameters

NameTypeDescription
incomingIncomingPostRequest

onPostResponse

Called by the IsmpHost to notify the module of a POST response to a previously sent request.

function onPostResponse(IncomingPostResponse memory incoming) external;

Parameters

NameTypeDescription
incomingIncomingPostResponse

onGetResponse

Called by the IsmpHost to notify the module of a GET response to a previously sent request.

function onGetResponse(IncomingGetResponse memory incoming) external;

Parameters

NameTypeDescription
incomingIncomingGetResponse

onPostRequestTimeout

Called by the IsmpHost to notify the module of a previously sent POST request that timed out.

function onPostRequestTimeout(PostRequest memory request) external;

Parameters

NameTypeDescription
requestPostRequest

onPostResponseTimeout

Called by the IsmpHost to notify the module of a previously sent POST response that timed out.

function onPostResponseTimeout(PostResponse memory request) external;

Parameters

NameTypeDescription
requestPostResponse

onGetTimeout

Called by the IsmpHost to notify the module of a previously sent GET request that timed out.

function onGetTimeout(GetRequest memory request) external;

Parameters

NameTypeDescription
requestGetRequest