Re: [Cppcms-users] Anybody uses cppcms::http::http_response io_mode raw or asynchronous_raw?
Brought to you by:
artyom-beilis
From: Fernando F. <die...@gm...> - 2020-09-01 22:17:07
|
Hi, I use "raw_post_data" to parse json, and use it for REST. (char *) request (). raw_post_data (). first In service implementation I also widely use "raw_post_data". El mar., 1 sept. 2020 a las 15:17, Artyom Beilis (<art...@gm...>) escribió: > Hello Dear CppCMS users > > Have anybody used raw or asynchronous_raw with http_response? > > I'm doing some changes for HTTP/1.1+websockets+performance improvement > support. > The original CppCMS design had an underlying assumption that the basic > communication protocol is derivative of CGI protocols - FastCGI, SCGI. > > So when http web server was added it actually parsed CGI output headers > and converted them to HTTP ones. Thus use of raw/asynchronos_raw mode when > the user writes his own CGI headers instead of generating them via > http_response API was reasonable. > > Today I want to make an HTTP protocol 1st class citizen in CppCMS - which > means that I don't silently assume that all IO is CGI based. It is actually > a requirement for extensions like WebSockets and other things that can't be > passed via *CGI like protocols. > > Removing "raw" *CGI I/O would simplify the task. I can implement it via an > intermediate CGI parser but it isn't the most trivial task. > > So I need to understand if anybody actually uses this feature or I can > remove it in CppCMS 2.0.0? > > Artyom Beilis > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |