Re: [Cppcms-users] Anybody uses cppcms::http::http_response io_mode raw or asynchronous_raw?
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2020-09-02 03:42:42
|
On Wed, Sep 2, 2020 at 1:17 AM Fernando Fuentes <die...@gm...> wrote: > > Hi, > > I use "raw_post_data" to parse json, and use it for REST. > > *This is something else and this is of course it remains :-)* raw response mode means something else: response().io_mode(raw) - means you write to out() your CGI headers: i.e.: out() << "Content-Type:text/html\r\nCookie: foo-bbar\r\n\r\n" out() << "Hello" This isn't very low level interface for something very custom. Artyom > > 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 >> > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |