client: store http code of last emitted response
[project/uhttpd.git] / uhttpd.h
index 6ef28d9..9bf8cbb 100644 (file)
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -243,6 +243,7 @@ struct client {
        enum client_state state;
        bool tls;
 
+       int http_code;
        struct http_request request;
        struct uh_addr srv_addr, peer_addr;