mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-22 11:22:38 -04:00

Instead of having a big callback function doing almost everything to handle a request, we split the code into several functions. There are two new helper functions : - build_response that create a response object with correct headers set. - compress_content who compress the content if necessary. All the different cases are handle by different functions : - handle_suggest - handle_skin - handle_search - handle_random - handle_content - handle_default accesHandlerCallback now handle common stuff, delegate to the handle_* functions everything else. There is no special optimization made here. Only splitting code.
Languages
C++
66.1%
Roff
22.8%
Meson
4.9%
Dockerfile
4.5%
Shell
1.7%