isFormRequest() — astro Function Reference
Architecture documentation for the isFormRequest() function in actions.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 50c952a5_da7b_df97_3325_ea804a54d386["isFormRequest()"] 06b8da53_857b_8b04_0933_f733f1198a2e["actions.ts"] 50c952a5_da7b_df97_3325_ea804a54d386 -->|defined in| 06b8da53_857b_8b04_0933_f733f1198a2e 7b78e976_79b5_a302_1dfc_b121ae89b56b["getActionState()"] 7b78e976_79b5_a302_1dfc_b121ae89b56b -->|calls| 50c952a5_da7b_df97_3325_ea804a54d386 style 50c952a5_da7b_df97_3325_ea804a54d386 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/react/src/actions.ts lines 68–74
function isFormRequest(contentType: string) {
// Split off parameters like charset or boundary
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type#content-type_in_html_forms
const type = contentType.split(';')[0].toLowerCase();
return formContentTypes.some((t) => type === t);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isFormRequest() do?
isFormRequest() is a function in the astro codebase, defined in packages/integrations/react/src/actions.ts.
Where is isFormRequest() defined?
isFormRequest() is defined in packages/integrations/react/src/actions.ts at line 68.
What calls isFormRequest()?
isFormRequest() is called by 1 function(s): getActionState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free