From f1e2efc9d2ebfa0bd5605293cf9ddaa8179131c6 Mon Sep 17 00:00:00 2001 From: Kevin Jerebica Date: Thu, 12 Sep 2024 19:58:33 +0200 Subject: [PATCH] repo: update docs --- README | 30 ++++++++++++++++++++++-------- proxlib.h | 3 ++- 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/README b/README index 5b058cd..ff2c1d8 100644 --- a/README +++ b/README @@ -12,16 +12,30 @@ TECHNICALS - Parsing is carried by a sub-library which I wrote named parslib. + * Parsing is carried by a dedicated sub-library which I wrote named parslib. + * Mass string comparisons are carried by another dedicated sub-library which + I wrote named streecmp. It runs in O(n) time. n being the lenght of the string - + no matter the amount of strings you want to compare it against (I am indeed + aware it is nonetheless worse than hashtables - maybe one day I will implement + those on my own as well). -TODO +TASKS - * Connect with parslib - * Parse port out of Host header (default_value:80) - * Implement server message parsing - * Verify and search for memory leaks - * More testing, debugging, fixing - * Implement HTTPS with OpenSSL + [DONE] Forward data between client/server + [DONE] Connect with parslib + [DONE] Implement client message parsing + [DONE] Implement server message parsing + [DONE] Add loose string checking for headers + [DOING] Cover all possible body segmentation standards + [DONE] Cover Content-Length + [DOING] Cover "chunked transfer encoding" + [DOING] Cover "compress transfer encoding" + [DOING] Cover "deflate transfer encoding" + [DOING] Cover "gzip/x-gzip transfer encoding" + [ACTIVELY DOING] More testing, debugging, fixing + [ACTIVELY DOING] Verify and search for memory leaks + [TODO] Implement HTTPS with OpenSSL, LibreSSL, or BearSSL + [TODO] Caching? COMMITS diff --git a/proxlib.h b/proxlib.h index a0e8d64..3fc3243 100644 --- a/proxlib.h +++ b/proxlib.h @@ -22,8 +22,9 @@ struct conn { int srvfd; char *cltbuff; - int cltbuff_len; char *srvbuff; + + int cltbuff_len; int srvbuff_len; struct httpareq cltreq;