mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 17:25:27 +00:00
A route registered as an upload route has its headers run through the middleware first, so a request that isn't allowed is answered before any of its body is taken. The body then goes to a file as it arrives, with a size limit, instead of into memory. MultipartFile splits a multipart/form-data body that is in a file into its parts without loading it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
10 lines
203 B
CMake
10 lines
203 B
CMake
set(DWEB_SOURCES
|
|
"Web.cpp"
|
|
"DeferredReply.cpp"
|
|
"MultipartFile.cpp")
|
|
|
|
add_library(dWeb STATIC ${DWEB_SOURCES})
|
|
|
|
target_include_directories(dWeb PUBLIC ".")
|
|
target_link_libraries(dWeb dCommon mongoose)
|