Commit graph

104 commits

Author SHA1 Message Date
Nick Krichevsky d650fc413c Minor formatting fix 2018-09-03 20:26:14 -04:00
Nick Krichevsky e3b7dcb837 Rename get_addr_info to build_addr_info 2018-09-03 19:16:02 -04:00
Nick Krichevsky f02048e866 Add http_server to make clean 2018-09-03 19:16:02 -04:00
Nick Krichevsky 5e4275ac5b Add basic server argparsing 2018-09-03 19:16:02 -04:00
Nick Krichevsky fccf0db890 Refactor handling of build directories in Makefile 2018-09-03 18:47:01 -04:00
Nick Krichevsky 83b764eb28 More error checks for strtol in client 2018-09-03 16:56:14 -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 66e06ee2fb Add 'all' task for make 2018-09-03 15:04:01 -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 c4341b2861 Add server stages to makefile 2018-09-03 13:23:09 -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 f7d469bb00 Refactor print_rtt detection 2018-09-02 22:57:19 -04:00
Nick Krichevsky d009065c33 Add RTT printing 2018-09-02 22:46:42 -04:00
Nick Krichevsky 31a19298c3 Add support for http:// urls 2018-09-02 21:38:55 -04:00
Nick Krichevsky 28f5448b49 Add graceful handling of failed requests 2018-09-02 20:58:06 -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 475b162389 Remove debug prints 2018-09-02 15:00:18 -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 b89ec823b8 Free basic requests using free_basic_request 2018-08-29 18:50:23 -04:00
Nick Krichevsky e93c07a0a2 Use copied strings instead of consts for http_message 2018-08-29 18:46:49 -04:00
Nick Krichevsky eadb440bcb Fix const warning in get_parts 2018-08-29 18:24:15 -04:00
Nick Krichevsky b355ddbec3 Fix buffer overwriting error in building request 2018-08-29 18:20:47 -04:00
Nick Krichevsky 1c469ad845 Add connecting to socket 2018-08-28 00:08:03 -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 5824b8f536 Add build_basic_request_method 2018-08-27 12:53:17 -04:00
Nick Krichevsky 19449b3f1e Add some basic argparsing 2018-08-27 12:27:59 -04:00