Commit graph

44 commits

Author SHA1 Message Date
Nick Krichevsky 42b43003aa Fix memory issues 2018-09-09 20:54:19 -04:00
Nick Krichevsky f780b69793 Move status code arrays into c files 2018-09-09 17:37:59 -04:00
Nick Krichevsky 85254e21cb Move get_buffer_size into buffer_helper 2018-09-09 16:48:30 -04:00
Nick Krichevsky cf1d164ec5 Rename socket_read_result to socket_result 2018-09-09 00:18:56 -04:00
Nick Krichevsky b216dcf3b8 Fix docblock in strcpy_lstrip 2018-09-08 22:51:21 -04:00
Nick Krichevsky b12210e1e1 Add RESULT_WRITE_ERROR to socket_read result 2018-09-08 17:26:28 -04:00
Nick Krichevsky 531a1d6814 Fix stack freeing error in common 2018-09-08 17:25:33 -04:00
Nick Krichevsky 2f40d75385 Don't use memset for structs 2018-09-08 14:23:14 -04:00
Nick Krichevsky 9a93ca36b1 Remove detection of chunked encoding 2018-09-06 09:06:41 -04:00
Nick Krichevsky 5e4275ac5b Add basic server argparsing 2018-09-03 19:16:02 -04:00
Nick Krichevsky b500327969 Fix buffer overrun in content length usage 2018-09-03 16:41:17 -04:00
Nick Krichevsky 74d23ebebe Change content length to use strtol 2018-09-03 16:41:00 -04:00
Nick Krichevsky 17d9767394 Fix bug where detection for chunked 2018-09-03 15:48:38 -04:00
Nick Krichevsky 2153f7c9b3 Remove unused imports 2018-09-03 15:04:12 -04:00
Nick Krichevsky 5353e35e58 Add missing doc comments 2018-09-03 15:03:37 -04:00
Nick Krichevsky e7a1164e44 Differentiate between client and server requests 2018-09-03 13:37:38 -04:00
Nick Krichevsky 8d6faadc2d Fix stack overflow bug in freeing headers 2018-09-03 00:33:43 -04:00
Nick Krichevsky 10cff3572b Fix leaks 2018-09-03 00:33:33 -04:00
Nick Krichevsky d009065c33 Add RTT printing 2018-09-02 22:46:42 -04:00
Nick Krichevsky 735c399405 Add support for reading until EOF 2018-09-02 20:37:34 -04:00
Nick Krichevsky a958916a41 Fix bug where read cursor would point to the wrong location in memory 2018-09-02 19:16:20 -04:00
Nick Krichevsky 11bf43b52f Add TODO 2018-09-02 01:34:36 -04:00
Nick Krichevsky 5bbda3dd24 Make content-length not buggy as hell 2018-09-02 01:26:01 -04:00
Nick Krichevsky 30fe078447 Add ability to read content-lengthd requests 2018-09-01 23:27:42 -04:00
Nick Krichevsky a4062655c1 Add missing doc comments 2018-09-01 21:33:27 -04:00
Nick Krichevsky 31517671eb Strip leading whitespace from header values 2018-09-01 21:28:52 -04:00
Nick Krichevsky b500854c1a Add todo about line foldering 2018-09-01 20:38:17 -04:00
Nick Krichevsky 96efb3c8aa Implement get_read_info 2018-09-01 20:29:04 -04:00
Nick Krichevsky 8beb3f7c02 Change headercmp to use const for header type 2018-09-01 20:17:27 -04:00
Nick Krichevsky 35b88e235d Implement case_insensitive_strcmp 2018-09-01 20:00:53 -04:00
Nick Krichevsky 5afa947d89 Add headercmp 2018-09-01 19:35:56 -04:00
Nick Krichevsky 0d211539f3 Modify get_all_remote_parts to read headers 2018-09-01 17:33:39 -04:00
Nick Krichevsky ec2da2168b Store the number of bytes read for the line 2018-09-01 16:53:11 -04:00
Nick Krichevsky 93ff826f67 Don't store new headers unless ones weren't available 2018-09-01 16:44:04 -04:00
Nick Krichevsky 529b86dade Write start line when found 2018-09-01 16:41:28 -04:00
Nick Krichevsky 9d5bc143a2 Implement read_line 2018-09-01 16:26:44 -04:00
Nick Krichevsky 20d04d8bd7 Add get_line_terminator to socket_helper 2018-09-01 16:26:41 -04:00
Nick Krichevsky 68f769cf97 Add headers type 2018-09-01 16:26:37 -04:00
Nick Krichevsky 533f695dcb Rename http_message.h to http_types.h 2018-09-01 16:26:30 -04:00
Nick Krichevsky e93c07a0a2 Use copied strings instead of consts for http_message 2018-08-29 18:46:49 -04:00
Nick Krichevsky 65fdb4ad69 Change port to be an int 2018-08-27 13:16:59 -04:00
Nick Krichevsky 69258376a9 Make http message field consts 2018-08-27 12:53:17 -04:00
Nick Krichevsky afd03376fe Add function to read all parts of socket 2018-08-27 10:48:28 -04:00
Nick Krichevsky cb658488c5 Add http_message 2018-08-27 10:48:21 -04:00