insomnia/packages/insomnia-app/app/common/send-request.ts

10 lines
314 B
TypeScript
Raw Normal View History

import { stats } from '../models';
import { sendAndTransform } from '../network/network';
export function getSendRequestCallback(environmentId?: string) {
return async function sendRequest(requestId: string) {
stats.incrementExecutedRequests();
return sendAndTransform(requestId, environmentId);
};
}