* Create README.md * Create benchmark_config.json * Update README.md * Create cinatra.dockerfile * Create CMakeLists.txt * Create main.cpp * Update cinatra.dockerfile * Update CMakeLists.txt * Update README.md * Update README.md * Update cinatra.dockerfile * Update README.md * Update cinatra.dockerfile * fix path error in docker file This cause start failed * Update cinatra.dockerfile * Update cinatra.dockerfile * minor improve performance
@@ -15,7 +15,7 @@ RUN make && make install
WORKDIR /
RUN git clone https://github.com/qicosmos/cinatra.git
WORKDIR $CINATRA
-RUN git checkout 07ecdeee6c5582f1c111cc4dab2ba7c7c7646a51
+RUN git checkout 5acb35cd72c3f72512c0a55e7dea9e25d7779039
WORKDIR $CINATRA_EXAMPLE
RUN mkdir build && cd build && cmake .. && make
EXPOSE 8090
@@ -11,8 +11,9 @@ int main() {
return -1;
}
+ server.enable_timeout(false);
server.set_http_handler<GET>("/plaintext", [](request& req, response& res) {
- res.set_status_and_content(status_type::ok, "Hello, World!", res_content_type::string);
+ res.set_status_and_content<status_type::ok,res_content_type::string>("Hello, World!");
});
server.run();