]> arthur.barton.de Git - netdata.git/blobdiff - src/web_client.h
registry server side operational
[netdata.git] / src / web_client.h
index 3823dbc9120c094ac87e3d77bb4cf6b5a812b1e5..d08b9076319bc0ef039e127c2638a9373e0b349f 100644 (file)
@@ -11,6 +11,7 @@
 #include <netdb.h>
 
 #include "web_buffer.h"
+#include "dictionary.h"
 
 #define DEFAULT_DISCONNECT_IDLE_WEB_CLIENTS_AFTER_SECONDS 60
 extern int web_client_timeout;
@@ -26,6 +27,7 @@ extern int web_enable_gzip;
 #define URL_MAX 8192
 #define ZLIB_CHUNK     16384
 #define HTTP_RESPONSE_HEADER_SIZE 4096
+#define COOKIE_MAX 1024
 
 struct response {
        BUFFER *header;                                 // our response header
@@ -58,6 +60,8 @@ struct web_client {
 
        struct timeval tv_in, tv_ready;
 
+       char cookie[COOKIE_MAX+1];
+
        int mode;
        int keepalive;