Nick Krichevsky
|
28700e2e63
|
Minor formatting fix
|
2018-09-09 19:47:21 -04:00 |
|
Nick Krichevsky
|
0a7300402e
|
Send files on request
|
2018-09-09 19:46:31 -04:00 |
|
Nick Krichevsky
|
ca7c7e9557
|
Fix buffering issues in send_headers
|
2018-09-09 19:46:12 -04:00 |
|
Nick Krichevsky
|
e9e8bb8175
|
Fix errors with indexing in status codes
|
2018-09-09 19:45:40 -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
|
4200b4a6d6
|
Add status code files to server
|
2018-09-09 15:52:38 -04:00 |
|
Nick Krichevsky
|
2733153826
|
Change demo status line message to not use : lol
|
2018-09-09 14:52:39 -04:00 |
|
Nick Krichevsky
|
0330ff80ff
|
Refactor get_file_from_url to use stat
|
2018-09-09 14:52:27 -04:00 |
|
Nick Krichevsky
|
dcc1ca1a2a
|
Implement get_file_from_url
|
2018-09-09 14:48:48 -04:00 |
|
Nick Krichevsky
|
cf1d164ec5
|
Rename socket_read_result to socket_result
|
2018-09-09 00:18:56 -04:00 |
|
Nick Krichevsky
|
5de4fd071e
|
Implement parse_request_line
|
2018-09-08 23:53:54 -04:00 |
|
Nick Krichevsky
|
16668c0707
|
Add strcpy_no_crlf
|
2018-09-08 22:53:45 -04:00 |
|
Nick Krichevsky
|
b216dcf3b8
|
Fix docblock in strcpy_lstrip
|
2018-09-08 22:51:21 -04:00 |
|
Nick Krichevsky
|
176b9f66c8
|
Fix segfault when there are no headers
|
2018-09-08 17:47:50 -04:00 |
|
Nick Krichevsky
|
262a1bd212
|
Add very basic server
|
2018-09-08 17:26:34 -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
|
cc014425c4
|
Add setup function to server/socket_server
|
2018-09-08 15:56:17 -04:00 |
|
Nick Krichevsky
|
2f40d75385
|
Don't use memset for structs
|
2018-09-08 14:23:14 -04:00 |
|
Nick Krichevsky
|
62e8bbbd9f
|
Refactor rtt calculation to only be based on connect
|
2018-09-07 15:31:57 -04:00 |
|
Nick Krichevsky
|
9a93ca36b1
|
Remove detection of chunked encoding
|
2018-09-06 09:06:41 -04:00 |
|
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 |
|