MCPcopy Index your code
hub / github.com/resend/react-email / getStatus

Function getStatus

packages/render/e2e/integrations.spec.ts:62–77  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

60};
61
62const getStatus = async (url: string) => {
63 return new Promise<{ body: string; status: number }>((resolve, reject) => {
64 http
65 .get(url, (response) => {
66 let body = '';
67 response.setEncoding('utf8');
68 response.on('data', (chunk) => {
69 body += chunk;
70 });
71 response.on('end', () => {
72 resolve({ body, status: response.statusCode ?? 0 });
73 });
74 })
75 .on('error', reject);
76 });
77};
78
79const stopWebServer = (child: child_process.ChildProcess | undefined) => {
80 if (!child || child.killed) {

Callers 1

Calls 1

onMethod · 0.80

Tested by

no test coverage detected