Matthieu Gautier d14460a666 Split accessHandlerCallback into several functions.
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.
2016-10-07 18:23:47 +02:00
Description
Command line Kiwix tools: kiwix-serve, kiwix-manage, ...
13 MiB
Languages
C++ 66.1%
Roff 22.8%
Meson 4.9%
Dockerfile 4.5%
Shell 1.7%