HttpRequestSection() — supabase Function Reference
Architecture documentation for the HttpRequestSection() function in HttpRequestSection.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Integrations/CronJobs/HttpRequestSection.tsx lines 24–77
export const HttpRequestSection = ({ form }: HttpRequestSectionProps) => {
return (
<SheetSection className="flex flex-col gap-3">
<FormField_Shadcn_
control={form.control}
name="values.method"
render={({ field }) => (
<FormItem_Shadcn_>
<FormLabel_Shadcn_>Method</FormLabel_Shadcn_>
<Select_Shadcn_ onValueChange={field.onChange} value={field.value}>
<FormControl_Shadcn_>
<SelectTrigger_Shadcn_>
<SelectValue_Shadcn_ placeholder="Select a method for the HTTP request" />
</SelectTrigger_Shadcn_>
</FormControl_Shadcn_>
<SelectContent_Shadcn_>
<SelectItem_Shadcn_ value="GET">GET</SelectItem_Shadcn_>
<SelectItem_Shadcn_ value="POST">POST</SelectItem_Shadcn_>
</SelectContent_Shadcn_>
</Select_Shadcn_>
<FormMessage_Shadcn_ />
</FormItem_Shadcn_>
)}
/>
<FormField_Shadcn_
control={form.control}
name="values.endpoint"
render={({ field: { ref, ...rest } }) => (
<FormItemLayout label="Endpoint URL" className="gap-1">
<FormControl_Shadcn_>
<Input {...rest} placeholder="https://api.example.com/endpoint" />
</FormControl_Shadcn_>
</FormItemLayout>
)}
/>
<FormField_Shadcn_
control={form.control}
name="values.timeoutMs"
render={({ field: { ref, ...rest } }) => (
<FormItemLayout label="Timeout" className="gap-1">
<Input
{...rest}
type="number"
placeholder="1000"
actions={<p className="text-foreground-light pr-2">ms</p>}
/>
</FormItemLayout>
)}
/>
</SheetSection>
)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free