--- parser3/src/include/pa_request.h 2026/10/05 17:50:18 1.282 +++ parser3/src/include/pa_request.h 2026/10/10 12:58:07 1.284 @@ -8,7 +8,7 @@ #ifndef PA_REQUEST_H #define PA_REQUEST_H -#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.282 2026/10/05 17:50:18 moko Exp $" +#define IDENT_PA_REQUEST_H "$Id: pa_request.h,v 1.284 2026/10/10 12:58:07 moko Exp $" #include "pa_pool.h" #include "pa_hash.h" @@ -214,7 +214,10 @@ public: core request processing BEWARE: may throw exception to you: catch it! */ - void core(const char* config_filespec, bool header_only, const String& amain_method_name = main_method_name, const String* amain_class_name = NULL); + void core(const char* config_filespec, const String& amain_method_name = main_method_name, const String* amain_class_name = NULL); + + /// ^response:send[part]: the headers go with the first part, the result of @main or exception is not sent then + void send(Value& part); /// executes ops void execute(ArrayOperation& ops); // execute.C @@ -420,6 +423,10 @@ private: // mime types /// $MAIN:MIME-TYPES Table *mime_types; +private: // true if ^response:send[] was used + + bool fheaders_sent; + private: // connection manipulation SQL_Connection* set_connection(SQL_Connection* aconnection) {