summary refs log tree commit diff stats
path: root/lib/pure/asynchttpserver.nim
Commit message (Collapse)AuthorAgeFilesLines
* documentation style tweaks (#10790)Miran2019-03-081-4/+4
| | | | | | | * exports are the least important field in the docs: they are put in the last place (at the bottom) * indent text after proc/type declaration for an easier navigation (noticeable difference between declarations and examples) * quickfix invalid style in `asynchttpserver`
* Fix regression w/ keep-alive connections to AsyncHttpServerLemonBoy2019-02-041-1/+4
| | | | | | We should keep listening if the connection is marked as keep-alive. Fixes #10536
* Clean up some code using a tuple unpack expressionLemonBoy2019-02-041-4/+2
|
* Fixes long-standing asynchttpserver regression. (#10102)Dominik Picheta2018-12-271-21/+27
|
* Change parseEnum to something faster for method parsing in asynchttpserver ↵hlaaf2018-06-081-2/+15
| | | | | | | | | | (#7682) * Add faster method parsing to asynchttpserver * Make it readable * Align case statement
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-3/+0
|
* Don't catch-all in asynchttpserver. It hides bugs.Dominik Picheta2017-11-261-4/+1
|
* further hardening of asynchttpserverAndreas Rumpf2017-11-191-6/+5
|
* Fixes #6386. (#6545)Dominik Picheta2017-11-191-124/+144
|
* Handle failed uri parsing in asynchttpserver (#6374)superfunc2017-09-151-1/+6
|
* Add more suitable error code and reason phrase for required Content-Length ↵Artem Labazin2017-07-261-2/+2
| | | | request.
* Update asynchttpserver.nimwt2017-06-061-1/+1
|
* Fix bad tail for status responsewt2017-06-051-1/+1
|
* fixes #3847 (#5609)Andreas Rumpf2017-03-271-7/+27
|
* Merge pull request #5466 from yglukhov/asynchttpserver-bad-content-lengthDominik Picheta2017-03-011-1/+3
|\ | | | | Dont assert on malformed requests
| * Dont assert on malformed requestsYuriy Glukhov2017-03-011-1/+3
| |
* | Revert "Listen on ipv6" (#5461)Yuriy Glukhov2017-03-011-2/+2
|/
* Listen on ipv6Yuriy Glukhov2017-02-251-2/+2
|
* asynchttpserver: import json in the example codeLuke Diamand2017-01-101-0/+1
| | | | | | The example code won't compile unless json is imported, because of the use of the %* operator. This can trip-up inexperienced Nim developers.
* Implement suggestions from @dom96Dmitry Polienko2016-11-021-2/+2
|
* Skip empty lines before status lineDmitry Polienko2016-10-311-7/+14
| | | | As recommended here: https://tools.ietf.org/html/rfc7230#section-3.5
* asynchttpserver: cleanup example codeAraq2016-10-241-1/+1
|
* Add respond proc examplehonewatson2016-10-031-0/+11
| | | Add an example for the respond proc demonstration JSON response.
* Fixes #3847.Dominik Picheta2016-09-251-0/+6
|
* asynchttpserver's Response object's req method uses HttpMethod now.Dominik Picheta2016-09-251-11/+13
| | | | Fixes #4423.
* Fixes #3847.Dominik Picheta2016-06-021-0/+5
|
* Let asynchttpserver pass control of socket to cb for upgrades.Dominik Picheta2016-06-021-2/+4
|
* The asynchttpserver module now uses a HttpHeaders object.Dominik Picheta2016-06-021-76/+20
|
* attempt to fix serious asynchttpserver regressionAndreas Rumpf2016-06-011-1/+1
|
* fixes #4221Andreas Rumpf2016-05-301-13/+13
|
* Add SO_REUSEPORT supportFederico Ceratto2015-12-161-1/+5
|
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-6/+9
|
* Added missing 412 - 417 http codes which are standard according to rfc2616 ↵Rostyslav Dzinko2015-09-171-0/+6
| | | | which is HTTP/1.1 standard.
* Reintroduce FutureVar[T] from commit 72b4912c84b16644657.Dominik Picheta2015-09-111-11/+14
|
* Fixes dom96/jester#45.Dominik Picheta2015-09-061-0/+1
|
* Modify proc parseHeadertulayang2015-08-091-2/+5
|
* Fix incorrect 400 reply in asynchttpserverDominik Picheta2015-06-031-0/+1
| | | Without the ``continue`` the user's callback will be called but the client would have already been replied to.
* Revert "Introduce FutureVar[T] to make recvLineInto safer."def2015-04-261-14/+11
| | | | This reverts commit 72b4912c84b16644657f94e54105739cba4b2457.
* Introduce FutureVar[T] to make recvLineInto safer.Dominik Picheta2015-04-241-11/+14
| | | | | | | | | | | FutureVar[T] is a new distinct Future type which is designed to be used for situations where the highest performance is needed. It reduces the number of Future allocations needed. It acts as a replacement for 'var' params in async procs. This commit modifies @def-'s PR in order to make it safer. The recvLineInto procedure has been modified to take a ``FutureVar[string]`` param instead of a ``ptr string`` param.
* Some small cleanup.Dominik Picheta2015-04-231-6/+5
|
* Merge branch 'clean-speedup-2' of https://github.com/def-/Nim into ↵Dominik Picheta2015-04-231-46/+49
|\ | | | | | | def--clean-speedup-2
| * Rename clearStringTable to cleardef2015-03-171-1/+1
| |
| * Make respond a template againdef2015-03-171-11/+11
| |
| * Make recvLineInto a proc instead of templatedef2015-03-171-2/+2
| |
| * Rename resetStringTable to clearStringTabledef2015-03-171-1/+1
| |
| * Remove unused newRequest procdef2015-03-171-3/+0
| |
| * Document asynchttpserver's respond templatedef2015-03-171-1/+1
| |
| * Speed up asynchttpserver significantly using all the previous changesdef2015-03-171-46/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Export socket field of AsyncHttpServer and addHeaders proc for templates - Make respond a template instead of proc because of how often it's called. This means no more "await" when invoking it. - Optimize respond template with special case for empty headers and Content-Length entry - newRequest doesn't allocate a hostname and body anymore because they're copied in later - Major changes to processClient to prevent allocations and copies
* | Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
|/
* Happy new year!Guillaume Gelin2015-01-061-1/+1
|