Skip to main content

Module server

Module server 

Source

Structs§

AppState
Shared application state
ErrorResponse
Enhanced error response

Enums§

ErrorType
Typed error categories for API error responses.

Constants§

BINARY_HEADER_READ_LIMIT
Maximum bytes to read from a binary upload before attempting header parse. BAM/CRAM headers are typically < 1 MB; 64 MB provides generous headroom.
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