Skip to main content

Module server

Module server 

Source

Structs§

AppState
Shared application state
ErrorResponse
Enhanced error response

Constants§

MAX_FILE_FIELD_SIZE
MAX_MULTIPART_FIELDS
Security configuration constants to prevent DoS attacks
MAX_TEXT_FIELD_SIZE

Functions§

create_router
Create the application router with all routes and middleware configured.
create_safe_error_response
Create a safe error response that prevents information disclosure while logging detailed errors server-side for debugging
run
Run the web server