From 520650b8637e0f399e5008368f2b68631052a126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hrub=C3=BD?= Date: Wed, 27 May 2020 17:43:27 +0200 Subject: [PATCH] Updated Companies and Individuals Using Beast (markdown) --- Companies-and-Individuals-Using-Beast.md | 29 +----------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/Companies-and-Individuals-Using-Beast.md b/Companies-and-Individuals-Using-Beast.md index 20dbb2a..917ae1e 100644 --- a/Companies-and-Individuals-Using-Beast.md +++ b/Companies-and-Individuals-Using-Beast.md @@ -152,32 +152,5 @@ Repository: [BoostWeb](https://github.com/yanrk/boost_web) is a simple library w ---------- [Vitrix Software] (https://www.vitrix.cz/) -We've created a library that simplifies HTTP server creation with support of websockets, authentication and authorization. -[Repository link](https://bitbucket.org/palmapp/vitrix.libs/src/master/spiderlib/src/) +We've created a library that simplifies HTTP server creation with websockets, authentication, authorization and serialization. [Repository link](https://bitbucket.org/palmapp/vitrix.libs/src/master/spiderlib/src/) -`class print_file_upload_processor : public spider::file_upload_processor -{ - public: - int handle_uploaded_files(spider::request &request, const std::vector &parts) final - { - for (auto &part : parts) - LOG(INFO) << "uploaded part " << part.content_disposition.name << " " - << part.temp_file_path; - - return 200; - } -}; - -int main(int argc, const char *argv[]) -{ - using namespace spider; - print_file_upload_processor fup{}; - auto thread_pool_ptr = std::make_shared(16); - - auto app_handle = run_spider_app("uploads", {argc, argv}, [&](init_context &ctx, app &my_app) { - on_url(my_app, "/", ctx.io_context, fup, "uploads", thread_pool_ptr); - }); - - app_handle->wait(); -} -` \ No newline at end of file