Builds the ClientFetch function used by the mock host. The returned function intercepts every endpoint request, runs the supplied resolveContext, dispatches to the matching mock implementation, and packages the result into a real Response.
ClientFetch
resolveContext
Response
@rest-vir/api
Builds the
ClientFetchfunction used by the mock host. The returned function intercepts every endpoint request, runs the suppliedresolveContext, dispatches to the matching mock implementation, and packages the result into a realResponse.