getCallerInfo() — astro Function Reference
Architecture documentation for the getCallerInfo() function in server.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d05f7b3a_0f53_ab9b_0fc7_7983cac82bdb["getCallerInfo()"] 12df90c3_b0fe_d858_b821_5011b6067fdb["server.ts"] d05f7b3a_0f53_ab9b_0fc7_7983cac82bdb -->|defined in| 12df90c3_b0fe_d858_b821_5011b6067fdb 87610e32_7608_ae90_0908_65538303d4a6["getActionContext()"] 87610e32_7608_ae90_0908_65538303d4a6 -->|calls| d05f7b3a_0f53_ab9b_0fc7_7983cac82bdb style d05f7b3a_0f53_ab9b_0fc7_7983cac82bdb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/actions/runtime/server.ts lines 242–251
function getCallerInfo(ctx: APIContext) {
if (ctx.routePattern === ACTION_RPC_ROUTE_PATTERN) {
return { from: 'rpc', name: ctx.url.pathname.replace(/^.*\/_actions\//, '') } as const;
}
const queryParam = ctx.url.searchParams.get(ACTION_QUERY_PARAMS.actionName);
if (queryParam) {
return { from: 'form', name: queryParam } as const;
}
return undefined;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getCallerInfo() do?
getCallerInfo() is a function in the astro codebase, defined in packages/astro/src/actions/runtime/server.ts.
Where is getCallerInfo() defined?
getCallerInfo() is defined in packages/astro/src/actions/runtime/server.ts at line 242.
What calls getCallerInfo()?
getCallerInfo() is called by 1 function(s): getActionContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free