--- parser3/src/include/pa_http.h 2020/12/15 17:10:31 1.29 +++ parser3/src/include/pa_http.h 2020/12/19 22:34:21 1.32 @@ -8,7 +8,7 @@ #ifndef PA_HTTP_H #define PA_HTTP_H -#define IDENT_PA_HTTP_H "$Id: pa_http.h,v 1.29 2020/12/15 17:10:31 moko Exp $" +#define IDENT_PA_HTTP_H "$Id: pa_http.h,v 1.32 2020/12/19 22:34:21 moko Exp $" #include "pa_vstring.h" #include "pa_vint.h" @@ -71,6 +71,8 @@ File_read_http_result pa_internal_file_r /*** httpd part ***/ +//#define HTTPD_DEBUG + class HTTPD_request; class HTTPD_Connection : public PA_Allocated { @@ -99,7 +101,7 @@ public: } bool accept(int, int); - void read_header(); + bool read_header(); size_t read_post(char *, size_t); size_t send_body(const void *, size_t); }; @@ -111,6 +113,7 @@ public: PARALLEL, MULTITHREADED } static mode; + static const char *port; static void set_mode(const String&); static int bind(const char *);