Commit Graph
58 Commits
Author SHA1 Message Date
Alex Hultman df14af9713 Bump version mark to 18 2020-06-03 07:59:15 +02:00
Alex Hultman 625efbc499 Don't pass req in open handler 2020-06-02 12:59:36 +02:00
Alex Hultman 6735bad79c Pass UserData when upgrading 2020-06-02 12:55:05 +02:00
Alex Hultman cb48712b3d Make it stick together just barely 2020-06-02 12:40:51 +02:00
Alex Hultman a8539e7463 Move most upgrading into HttpResponse 2020-06-02 10:08:31 +02:00
Alex Hultman 4be90c0114 Add upgrade handler 2020-06-01 15:45:03 +02:00
Alex HultmanandGitHub c6a2ee0554 Change mark, 17 2020-05-24 21:38:31 +02:00
Alex Hultman c7ac8c7e56 Store headers in bloom filter, respond to 100-continue 2020-04-06 02:48:11 +02:00
Dmitry IgrishinandGitHub 1c84277fd9 Optionally prevent sending of "uWebSockets" header (#998)
* Optionally prevent sending of "uWebSockets" header
2020-02-23 18:41:25 +01:00
Alex Hultman f274d63dca Fix all -Wconversion warnings 2019-12-28 21:44:54 +01:00
Alex Hultman 3fb870ac55 Clean-up and fix HttpResponse::cork behavior 2019-12-26 17:17:33 +01:00
Alex Hultman bdac60a177 Fix a few warnings 2019-12-26 16:45:23 +01:00
Alex Hultman 1707469cf8 Change mark 2019-10-08 23:12:03 +02:00
Alex Hultman 762b18459e Refactor a bit, put everything in uWS namespace 2019-06-09 07:53:43 +02:00
Alex Hultman 31574ec63a Actually make it build, fix simple warning 2019-04-16 17:13:10 +02:00
Alex Hultman 799fe89a9b Add experimental HttpResponse::cork 2019-04-16 16:59:28 +02:00
Alex Hultman 495ccfc076 Update uS, add AsyncSocket::getRemoteAddress() 2019-03-03 07:40:44 +01:00
Alex Hultman f1bdbc968b First pass of overall cleanups 2019-02-10 00:17:13 +01:00
Alex Hultman 127d3d6a14 res.tryEnd returns [ok, hasResponded] 2019-02-09 23:31:04 +01:00
Alex Hultman 0709ec05a6 Even zero is a valid content-length 2019-02-04 00:39:45 +01:00
Alex Hultman eaa9467d1f Don't write mark in the middle of streaming 2019-01-29 17:15:06 +01:00
Alex Hultman d4e767ac65 Shorten mark footprint 2019-01-26 22:08:41 +01:00
Alex Hultman 4d06180041 Move mark from WebSockets down to HTTP 2019-01-26 21:55:24 +01:00
Alex Hultman a0eeb769c9 Carry over backpressure from Http to WS 2019-01-24 11:53:10 +01:00
Alex Hultman 19aa6ec9af Implement hasResponded 2019-01-18 17:20:21 +01:00
Alex Hultman 2caefa9d96 We need HttpResponse::hasResponded 2019-01-18 16:36:24 +01:00
Alex Hultman 04281eeea6 onData as unique_function 2019-01-17 08:21:39 +01:00
Alex Hultman 6718301ac9 Make onAborted unique_function 2019-01-17 06:30:47 +01:00
Alex Hultman 0ca061e772 Being extra clear with move 2019-01-15 08:09:50 +01:00
Alex Hultman 95cafc2c7b Try using function2 for HttpResponse::onWritable 2019-01-15 07:11:30 +01:00
Alex Hultman 614d02e462 Not my problem 2019-01-07 11:30:57 +01:00
Alex Hultman 47467ab1e5 Pass "last" bool to res->onData 2019-01-07 03:05:19 +01:00
Alex Hultman ed7222e513 Fix last obvious leak 2018-12-30 18:02:57 +01:00
Alex Hultman d597041ca4 Don't leave content-length on empty response 2018-12-29 14:27:50 +01:00
Alex Hultman a25e2ab397 A bit of clean-ups and license fixes 2018-11-22 01:29:28 +01:00
Alex Hultman 0d09d1db02 Multiple definitions 2018-11-04 08:59:34 +01:00
Alex Hultman 1613c5020d Initial WebSocket hook up 2018-10-29 23:06:32 +01:00
Alex Hultman ab6abaf2e6 Apache License 2.0 2018-10-29 00:13:52 +01:00
Alex Hultman a54b4c8419 Make sure to writeStatus before writeHeader 2018-10-28 16:26:48 +01:00
Alex Hultman c0eaf297ed Fix HttpResponse::write with timeout & internalEnd comments 2018-10-28 03:54:16 +01:00
Alex Hultman 4059dd644c Abort logic fixes 2018-10-28 02:08:01 +01:00
Alex Hultman 005243c8de HttpResponse::internalEnd for end & tryEnd 2018-10-28 02:26:08 +02:00
Alex Hultman 8cfda9f4b0 Handle socket closing, shutdown, error & (upgrade) in HTTP handlers 2018-10-17 22:23:25 +02:00
Alex Hultman be0eb69597 Fix the router (todo: req->getParameter hook up) 2018-10-04 04:05:43 +02:00
Alex Hultman b514da14ca Almost working async file streamer 2018-09-29 21:35:28 +02:00
Alex Hultman 5a1de2039c Fix up async file streaming 2018-09-29 19:42:35 +02:00
Alex Hultman 2c511ec904 More work on new streams 2018-09-27 23:44:46 +02:00
Alex Hultman c25a2785e5 Begin work on new streams, chunked response streams, etc 2018-09-26 20:42:26 +02:00
Alex Hultman 49f503c570 Reopen closed file fixes binary diffs 2018-09-23 23:52:12 +02:00
Alex Hultman 8106a0f628 Loop::defer and almost working async streaming 2018-09-23 21:48:29 +02:00