MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / handleRequest

Function handleRequest

examples/remix/app/entry.server.tsx:17–40  ·  view source on GitHub ↗
(
  request: Request,
  responseStatusCode: number,
  responseHeaders: Headers,
  remixContext: EntryContext,
  // This is ignored so we can keep it in the template for visibility.  Feel
  // free to delete this parameter in your app if you're not using it!
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  loadContext: AppLoadContext
)

Source from the content-addressed store, hash-verified

15const ABORT_DELAY = 5_000;
16
17export default function handleRequest(
18 request: Request,
19 responseStatusCode: number,
20 responseHeaders: Headers,
21 remixContext: EntryContext,
22 // This is ignored so we can keep it in the template for visibility. Feel
23 // free to delete this parameter in your app if you're not using it!
24 // eslint-disable-next-line @typescript-eslint/no-unused-vars
25 loadContext: AppLoadContext
26) {
27 return isbot(request.headers.get("user-agent") || "")
28 ? handleBotRequest(
29 request,
30 responseStatusCode,
31 responseHeaders,
32 remixContext
33 )
34 : handleBrowserRequest(
35 request,
36 responseStatusCode,
37 responseHeaders,
38 remixContext
39 );
40}
41
42function handleBotRequest(
43 request: Request,

Callers

nothing calls this directly

Calls 3

handleBotRequestFunction · 0.85
handleBrowserRequestFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected