2024-09-04 09:04:08 +00:00
|
|
|
+=============+
|
|
|
|
| parslib |
|
|
|
|
+=============+
|
2024-08-15 23:12:06 +00:00
|
|
|
|
2024-09-04 09:04:08 +00:00
|
|
|
HTTP/s parse C library and algorithm development
|
|
|
|
environment for - my proxy library - proxlib.
|
2024-09-02 22:12:22 +00:00
|
|
|
|
|
|
|
RES: github.com/tinyproxy/tinyproxy
|
|
|
|
RES: github.com/nginx/nginx
|
2024-09-04 09:04:08 +00:00
|
|
|
RES: git.0xdeadbeer.xyz/0xdeadbeer/proxlib
|
2024-09-02 22:12:22 +00:00
|
|
|
|
2024-09-04 07:06:42 +00:00
|
|
|
TECHNICALS
|
|
|
|
|
|
|
|
int initres(void);
|
|
|
|
void fretres(void);
|
|
|
|
int readlin(char **buff, char **buff_lim);
|
|
|
|
int parshfield(char **offset, int len, /* out */ struct point *hentries);
|
|
|
|
int parstitle(char *offset, int len, /* out */ struct httitle *titl);
|
|
|
|
int parsme(char **buff, /* out */ struct httpars *pars);
|
2024-09-04 09:04:08 +00:00
|
|
|
void printfpars(struct httpars *pars);
|
2024-09-04 07:06:42 +00:00
|
|
|
|
|
|
|
Library is designed to follow source input unaltering.
|
2024-09-04 07:16:55 +00:00
|
|
|
Which suggests, that it does not directly alter the input
|
|
|
|
data or strings while giving users the ability to
|
|
|
|
store the parsed information (struct httpars) either on the
|
|
|
|
stack or heap.
|
2024-09-04 07:06:42 +00:00
|
|
|
|
2024-09-02 22:12:22 +00:00
|
|
|
LEAKS
|
|
|
|
|
|
|
|
LEAKS file contains the most recent valgrind memory leaks
|
|
|
|
dump ran on main.c
|
|
|
|
|
|
|
|
LEAKS.TEST.[id] files respectively contain the most recent
|
|
|
|
valgrind memory leaks dump ran on a test with an id=[id]
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
* implement tests
|
|
|
|
* integrations with tinyproxy..?
|
|
|
|
|