buildHttpRequestCommand() — supabase Function Reference
Architecture documentation for the buildHttpRequestCommand() function in CronJobs.utils.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 94899f8d_07a1_fe5f_f72a_73c30816ebdb["buildHttpRequestCommand()"] 728b7fd4_4e71_0349_2f42_872a8daf351d["buildCommand()"] 728b7fd4_4e71_0349_2f42_872a8daf351d -->|calls| 94899f8d_07a1_fe5f_f72a_73c30816ebdb style 94899f8d_07a1_fe5f_f72a_73c30816ebdb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Integrations/CronJobs/CronJobs.utils.tsx lines 15–32
export const buildHttpRequestCommand = (
method: 'GET' | 'POST',
url: string,
headers: HTTPHeader[] = [],
body: string | undefined,
timeout: number
) => {
return `
select
net.${method === 'GET' ? 'http_get' : 'http_post'}(
url:='${url}',
headers:=jsonb_build_object(${headers
.filter((v) => v.name && v.value)
.map((v) => `'${v.name}', '${v.value}'`)
.join(', ')}), ${method === 'POST' && body ? `\n body:='${body}',` : ''}
timeout_milliseconds:=${timeout}
);`
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does buildHttpRequestCommand() do?
buildHttpRequestCommand() is a function in the supabase codebase.
What calls buildHttpRequestCommand()?
buildHttpRequestCommand() is called by 1 function(s): buildCommand.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free