Matthieu Gautier
3fd1310008
Use c++11 std::thread instead of pthread.
2021-01-26 17:53:25 +01:00
Steve Wills
6900b4e506
fix build on FreeBSD
...
With this header, sockaddr_in and INADDR_ANY are not defined
2020-12-07 09:38:46 -05:00
Matthieu Gautier
1a5a2e7a8e
Adapt kiwix-lib to the new libzim api.
2020-12-02 12:16:48 +01:00
Matthieu Gautier
3352c95314
Remove the `RedirectResponse` and use a basic `Response` with header.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
6d5cddca12
Fix android compilation
...
Android clang complains about the fact it cannot move the
`std::unique_ptr<ContentResponse>` into a `std::unique_ptr<Response>&&`
(for the implicit `std::unique_ptr<Response>` constructor).
Let's help him a bit.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
a3939e9a05
Move all the content code in the ContentResponse.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
eee621d15b
Move small utilities method to create response in Response class.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
7b2ee37437
Move the entry response to its own class.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
f014fb2895
Introduce a ContentResponse.
...
This is only an "interface" for now as other type of response (entry) may
be "transformed" to a ContentResponse.
We cannot move all the code in the class.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
1011d1ff0b
Move the redirection response in its own class.
...
The redirection is the easiest to move, let's start with this one.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
9e351b279e
Remove `get_default_response` in favor of a static Response method.
...
We want to build different kind of response depending of the context.
2020-08-13 11:16:41 +02:00
Matthieu Gautier
a0bdc0821c
Move internalServer code into its own source files.
2020-08-13 11:16:41 +02:00