isFormRequest() — astro Function Reference
Architecture documentation for the isFormRequest() function in server.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 488bcc14_75e5_e615_82f7_f5c218b99285["isFormRequest()"] 88d29d84_fc17_43e9_f02f_9b64acf73dd5["server.ts"] 488bcc14_75e5_e615_82f7_f5c218b99285 -->|defined in| 88d29d84_fc17_43e9_f02f_9b64acf73dd5 4c527789_d4d5_d58b_c232_06c54369f406["getFormState()"] 4c527789_d4d5_d58b_c232_06c54369f406 -->|calls| 488bcc14_75e5_e615_82f7_f5c218b99285 style 488bcc14_75e5_e615_82f7_f5c218b99285 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/react/src/server.ts lines 214–220
function isFormRequest(contentType: string | null) {
// 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/server.ts.
Where is isFormRequest() defined?
isFormRequest() is defined in packages/integrations/react/src/server.ts at line 214.
What calls isFormRequest()?
isFormRequest() is called by 1 function(s): getFormState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free