summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-12-14 19:08:52 +0300
committerNakidai <nakidai@disroot.org>2024-12-14 19:08:52 +0300
commit22f0f0abda417afee5b4dbe26b606b11e3e73194 (patch)
tree3679a292138a9bf7b4ec5a619c0e287671a1a9e3
parentefca9fa1b6deb6ac2767c782a3bfcec639ed9fc0 (diff)
downloadlibhttpc-22f0f0abda417afee5b4dbe26b606b11e3e73194.tar.gz
libhttpc-22f0f0abda417afee5b4dbe26b606b11e3e73194.zip
Add one more task
Also replace plaintext TODO with one written in mdoc(7)
-rw-r--r--TODO2
-rw-r--r--TODO.745
2 files changed, 45 insertions, 2 deletions
diff --git a/TODO b/TODO
deleted file mode 100644
index 2fa40c9..0000000
--- a/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
-- Implement LibHTTPC_readRequest
-- Add bound-checking for LibHTTPC_loadRequest
diff --git a/TODO.7 b/TODO.7
new file mode 100644
index 0000000..bfcb305
--- /dev/null
+++ b/TODO.7
@@ -0,0 +1,45 @@
+.Dd December 14, 2024
+.Dt TODO 7
+.Os
+.
+.Sh NAME
+.Nm TODO
+.Nd some things
+that I want to do
+with this library
+.
+.Sh DESCRIPTION
+.Bl -bullet
+.It
+Implement
+.Fn LibHTTPC_readRequest .
+It should be able to
+parse requests
+from
+.Xr socket 2
+directly.
+.It
+Add bound-checking for
+.Fn LibHTTPC_loadRequest .
+This just needs
+to add a
+.Fa buf_len
+parameter
+and check
+if function
+is righter than
+.Ql buf + buf_len .
+.It
+Make
+.Fn LibHTTPC_dumpResponse
+accept
+.Dv NULL
+in
+.Fa buf .
+In this way
+function should
+allocate buffer itself.
+.El
+.
+.Sh AUTHORS
+.An Nakidai Perumenei Aq Mt nakidai@disroot.org