Commit Graph

117 Commits (3aa0ace863bb643b5aaff73e57f23a020f057ca6)

Author SHA1 Message Date
Jef Roosens 87312f2d84
feat: PoC uploading of pastes 2023-05-30 10:17:46 +02:00
Jef Roosens dfbd179c7a
feat: paved the way for uploading pastes 2023-05-30 09:37:40 +02:00
Jef Roosens 94b07caeb3
feat: add post redirect route 2023-05-29 23:55:27 +02:00
Jef Roosens 1e42dc04dc
feat: add auth step 2023-05-29 23:37:23 +02:00
Jef Roosens 16103f9b24
feat: add step to receive request body in buffer 2023-05-29 23:26:15 +02:00
Jef Roosens ff0795bb55
feat: separate lander code into separate module 2023-05-29 21:52:18 +02:00
Jef Roosens 7af4be12ff
feat: serve pastes 2023-05-29 21:41:03 +02:00
Jef Roosens 00fa4a7c8c
feat: first working redirect 2023-05-29 18:53:52 +02:00
Jef Roosens 7913201f89
chore: fix repo compilation after rebase with main 2023-05-29 18:40:36 +02:00
Jef Roosens acbe8dc314
fix: wrong header name 2023-05-29 18:28:46 +02:00
Jef Roosens 095f86ad72
feat: support serving files 2023-05-29 18:28:46 +02:00
Jef Roosens 464753d627
feat: allow matching regex routes 2023-05-29 18:28:46 +02:00
Jef Roosens dd0ba31506
feat: support adding up to 4 headers 2023-05-29 18:28:46 +02:00
Jef Roosens 8f9de37a95
feat: add Server header 2023-05-29 18:28:46 +02:00
Jef Roosens d725a090a2
fix: pipelining now actually works 2023-05-29 18:28:46 +02:00
Jef Roosens 18d67fb69f
feat: routes now specify a method 2023-05-29 18:28:46 +02:00
Jef Roosens 9b66223a57
refactor: move some stuff, add some docs 2023-05-29 18:28:45 +02:00
Jef Roosens 2fb3e2bb00
feat: response bodies from char buffers; generated responses 2023-05-29 18:28:45 +02:00
Jef Roosens 62348c14f5
refactor: moved resetting of ctx to separate function 2023-05-29 18:28:45 +02:00
Jef Roosens 590f0e5186
feat: added http response type names 2023-05-29 18:28:45 +02:00
Jef Roosens a90330dd6e
feat: parse method into enum value 2023-05-29 18:28:45 +02:00
Jef Roosens 90ff55d977
feat: small changes 2023-05-29 18:28:45 +02:00
Jef Roosens 4d436aa8aa
feat: split route into route & query 2023-05-29 18:28:45 +02:00
Jef Roosens 7ece0eb4e5
feat: basic http routing 2023-05-29 18:28:45 +02:00
Jef Roosens 8250a5b8b0
feat: started designing http framework 2023-05-29 18:28:45 +02:00
Jef Roosens 90d83bc5d4
docs: start architure file 2023-05-29 18:28:45 +02:00
Jef Roosens 68f9227436
feat: decouple event loop from http 2023-05-29 18:28:45 +02:00
Jef Roosens f3fced908f
feat: small steps 2023-05-29 18:28:45 +02:00
Jef Roosens dfd27b579d
feat: add context information to requests 2023-05-29 18:28:45 +02:00
Jef Roosens 6d4b94c55e
feat: inching our way towards http routing 2023-05-29 18:28:44 +02:00
Jef Roosens 5dc772e507
feat: added basic logging 2023-05-29 18:28:44 +02:00
Jef Roosens 32687e0b49
feat: only memmove read buffer on read 2023-05-29 18:28:44 +02:00
Jef Roosens c58e53eb2a
feat: start of http part of server 2023-05-29 18:28:44 +02:00
Jef Roosens 6d45ec59dc
refactor: make code a bit cleaner n stuff 2023-05-29 18:28:44 +02:00
Jef Roosens 2ff70c02c6
feat: perhaps kinda working event loop server? 2023-05-29 18:28:44 +02:00
Jef Roosens 80e972ff54
feat: simple echoing server 2023-05-29 18:28:44 +02:00
Jef Roosens a163ee5155
refactor: clean up the code to start development properly 2023-05-29 18:28:43 +02:00
Jef Roosens 11cd537759
feat: switch to C-based compilation, start of simple event loop 2023-05-29 18:27:40 +02:00
Jef Roosens 50ebf86589
refactor: started refactoring trie api (contains segfaults) 2022-12-07 12:29:37 +01:00
Jef Roosens 088322c18f
refactor: move locking responsibility to user
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-12-07 11:28:20 +01:00
Jef Roosens 2a373f3841
refactor: move trie back to own static library 2022-12-07 10:57:58 +01:00
Jef Roosens 2d89c5e80f
refactor: some small stuff 2022-12-03 13:27:34 +01:00
Jef Roosens f9a5fc14e5
feat: add some more tests; some optimisations 2022-11-29 20:59:28 +01:00
Jef Roosens ccbc55350c
test: added test framework for testing trie 2022-11-29 16:25:24 +01:00
Jef Roosens 2d7cce138d
chore: ran formatter; added TRIE description file 2022-11-29 15:17:43 +01:00
Jef Roosens 1e5442379f
feat: remove edge case checking for empty key 2022-11-29 15:10:12 +01:00
Jef Roosens 88ea0db2ee
feat: allow skips up to 8 characters long 2022-11-29 15:08:07 +01:00
Jef Roosens 4bcdd5c4d9
refactor: rename TernaryTrie to Trie
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-29 11:27:28 +01:00
Jef Roosens cc8cfaeace
refactor: don't compile trie as separate library
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-27 20:20:09 +01:00
Jef Roosens 55474b485f
feat: add very simple index page linking to my site
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-27 19:49:38 +01:00
Jef Roosens 22a7b5b3fc
feat: added secure random URL option
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 21:02:33 +01:00
Jef Roosens b66c0f0e00
feat: allow adding paste with predefined key
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 20:15:49 +01:00
Jef Roosens 91bba2e9ff
fix: free key when adding paste
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 19:48:01 +01:00
Jef Roosens 425695596b
fix: assume server runs in working directory
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 16:48:34 +01:00
Jef Roosens 97ed770166
feat: serve paste entries
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 16:28:27 +01:00
Jef Roosens 7f42d540b5
feat: add route for adding pastes 2022-11-21 16:22:52 +01:00
Jef Roosens a22a2e5cfa
feat: create pastes directory; separate routes 2022-11-21 15:45:31 +01:00
Jef Roosens f1ec643f80
feat: pave way for pastebin integration 2022-11-21 15:28:02 +01:00
Jef Roosens 689a878978
chore: added some comments 2022-11-21 14:46:53 +01:00
Jef Roosens 494946d24a
feat: use more std::string
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 14:19:56 +01:00
Jef Roosens 26318de22e
feat: return full URL of added entry
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 12:21:01 +01:00
Jef Roosens 51fc2867a8
feat: added randomly generated URLs
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-21 12:03:16 +01:00
Jef Roosens 9c3af74e1b
Add very simple add-only persistence model
ci/woodpecker/push/woodpecker Pipeline was successful Details
2022-11-15 22:49:36 +01:00
Jef Roosens a2fcbb4224
Basic working version without persistent storage 2022-11-15 21:12:08 +01:00
Jef Roosens cae62ce7d2
Proof-of-concept 2022-11-15 17:25:04 +01:00
Jef Roosens 614ae1c711
I will murder cmake 2022-11-15 17:05:14 +01:00
Jef Roosens d7f95f0fbf
Configured start of project 2022-11-15 16:05:47 +01:00