Skip to content

Commit 87f16a1

Browse files
author
Sebastiano Merlino
committed
Extracted minor classes from webserver header
Extracted create_webserver, event_supplier, event_tuple, http_resource_mirror from webserver.hpp file. This increases readability of the code.
1 parent 779b92d commit 87f16a1

File tree

5 files changed

+11
-587
lines changed

5 files changed

+11
-587
lines changed

src/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ INCLUDES = -I../ -I$(srcdir)/httpserver/
2020
METASOURCES = AUTO
2121
lib_LTLIBRARIES = libhttpserver.la
2222
libhttpserver_la_SOURCES = string_utilities.cpp webserver.cpp http_utils.cpp http_endpoint.cpp http_request.cpp http_response.cpp http_resource.cpp
23-
noinst_HEADERS = httpserver/string_utilities.hpp gettext.h
24-
nobase_include_HEADERS = httpserver.hpp httpserver/webserver.hpp httpserver/http_utils.hpp httpserver/http_endpoint.hpp httpserver/http_request.hpp httpserver/http_response.hpp httpserver/http_resource.hpp httpserver/binders.hpp
23+
noinst_HEADERS = httpserver/details/event_tuple.hpp httpserver/details/http_resource_mirror.hpp httpserver/string_utilities.hpp gettext.h
24+
nobase_include_HEADERS = httpserver.hpp httpserver/create_webserver.hpp httpserver/webserver.hpp httpserver/http_utils.hpp httpserver/http_endpoint.hpp httpserver/http_request.hpp httpserver/http_response.hpp httpserver/http_resource.hpp httpserver/binders.hpp httpserver/event_supplier.hpp
2525
AM_CXXFLAGS += -fPIC -Wall
2626
libhttpserver_la_LIBADD = -lmicrohttpd
2727
libhttpserver_la_LDFLAGS =

src/httpserver.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "httpserver/http_resource.hpp"
99
#include "httpserver/http_response.hpp"
1010
#include "httpserver/http_request.hpp"
11+
#include "httpserver/event_supplier.hpp"
1112
#include "httpserver/webserver.hpp"
1213

1314
#endif

src/httpserver/http_response.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
#include <map>
2828
#include <utility>
2929
#include <string>
30-
#include "httpserver/binders.hpp"
30+
31+
#include "httpserver/details/http_resource_mirror.hpp"
3132

3233
struct MHD_Connection;
3334

0 commit comments

Comments
 (0)