I tried to develop a simple app using http_server only, it requires around 400Kb of Flash,
is there a way to reduce this size by discharging unused libraries?
If the library is not referenced, it would not be included.
Probably the -debug is not part of your make target and the optimization is already enabled.
Perhaps unused or not needed modules/static data could be removed from your code.