9d7d72377e
don't overwrite content-length if its already there
...
we shouldn't overwrite something that the client likely did it
willlingly
2020-09-03 22:48:59 -03:00
c3cd44205f
Merge remote-tracking branch 'upstream/master' into master
2020-09-01 18:09:52 -03:00
Anton Maminov
dfe7dca08f
fix websocket issue ( #577 )
2020-07-08 14:42:08 +03:00
Anton Maminov
2e749a2987
fix an issues with responding with long strings ( #576 )
2020-07-08 14:41:16 +03:00
Brian J. Cardiff
a8c0f09b85
Upgrade to Crystal 0.35.0 ( #570 )
...
* Update to ameba ~> 0.12.0
* Use Compress::Deflate and Compress::Gzip
* Drop unused require
* Fix spec due to defer request upgrade
2020-06-10 21:11:43 +03:00
3c2dcc73e5
Merge remote-tracking branch 'upstream/master'
2020-05-19 16:16:23 -03:00
Todd Sundsted
70684a2cf0
Pick up transitional type aliases. ( #566 )
2020-05-16 18:22:13 +03:00
Brian J. Cardiff
c3c43145b8
Comply exhaustive case check ( #560 )
2020-04-04 21:26:05 +03:00
Anton Maminov
b7506f6fab
allow to set optional response body on redirects ( #561 )
2020-04-04 21:25:35 +03:00
2077cfb8b9
route_handler: remove auto-HEAD
2020-02-20 21:17:50 -03:00
50dfd25450
add head method to dsl
2020-02-20 20:59:34 -03:00
ccac1cf651
Merge remote-tracking branch 'upstream/master'
2020-02-16 21:42:44 -03:00
maggie
a4bdecdc7d
Flush io buffer after each write to log ( #554 )
2019-10-11 12:14:26 +03:00
Sijawusz Pur Rahnama
c893172fbf
Cleanup ameba warnings ( #551 )
2019-08-30 14:32:23 +03:00
Sijawusz Pur Rahnama
740cb188a9
Check for KEMAL_ENV variable already in Config#initialize ( #552 )
2019-08-30 14:20:38 +03:00
dc548fcb83
Merge remote-tracking branch 'upstream/master'
2019-08-26 15:43:03 -03:00
Anton Maminov
e99129ab50
fix process request when a response already closed ( #550 )
2019-08-05 18:34:26 +03:00
1a8894eece
Merge remote-tracking branch 'upstream/master'
2019-08-04 22:42:22 -03:00
Omar Roth
18ddc3b4e6
Fix static file handler for files > 2^31 bytes ( #546 )
2019-08-03 19:37:23 +03:00
Brian J. Cardiff
17bf1c7709
Upgrade to Crystal v0.30.0 ( #548 )
2019-08-03 19:35:40 +03:00
Johannes Müller
6e2714404d
Add missing return types to overrides of abstract methods ( #544 )
2019-07-26 11:48:14 +03:00
Anton Maminov
e3544a86bf
Do not early return from HTTP::Server::Response::Output.close. Revert what Ameba broke
2019-06-18 18:03:32 +03:00
Sijawusz Pur Rahnama
06665e81bc
Use Ameba on Travis CI ( #520 )
2019-06-13 14:31:45 +03:00
bcf875b1d8
websocket: default to error code 500 on any websocket error
2019-06-11 18:00:36 -03:00
d2fadb58f9
add support for error codes on websockets
...
copied from 541dfc9da5/src/onyx-http/middleware/router/websocket_handler.cr (L36)
2019-06-11 15:38:07 -03:00
Brian J. Cardiff
79cd8bd646
Fix Time.now deprecation warning
2019-06-04 16:59:05 -03:00
Alexander Reelsen
14ed2aa8bf
improvement: use Time.measure
2019-03-20 08:39:36 +01:00
Alexander Reelsen
c6ac5232db
Properly measure request time using Time.monotonic
2019-03-19 12:57:28 +01:00
Sijawusz Pur Rahnama
1fa87761a4
Run crystal tool format --check on Travis CI ( #518 )
2019-02-05 11:23:20 +03:00
Sijawusz Pur Rahnama
b7bf9d771f
Use Crystal built-in MIME registry ( #516 )
2019-02-05 10:26:45 +03:00
sdogruyol
b0a17ac9b4
Do not try to call ExceptionHandler#call_exception_with_status_code on a closed response. Fixes #514
2019-01-16 23:33:33 +03:00
Serdar Dogruyol
0fa869cf96
allow to set filename for send_file ( #512 )
2019-01-16 21:59:57 +03:00
Anton Maminov
c3dd24482e
set status_code before response ( #513 )
2018-12-25 19:06:07 +03:00
Anton Maminov
6f111ffbb0
allow to set filename for send_file
...
if the disposition type matches "attachment", this
indicates that the recipient should prompt the user to save the response
locally, rather than process it normally
2018-12-23 13:24:27 +02:00
Diego Guraieb
a5d8df7382
Add support for parsing command line parameters from other sources than ARGV ( #483 )
2018-11-30 19:16:08 +03:00
Sijawusz Pur Rahnama
50f48509fd
Use compile-time StringLiteral#downcase instead of runtime String#downcase ( #508 )
2018-11-14 13:47:46 +03:00
ikarigeorge
482b4a6e7d
Fixing exclude method in Handler ( #507 )
2018-11-11 00:58:41 +03:00
Anton Maminov
6de5e7b929
Fix ParamParser files memoization ( #503 )
2018-11-05 22:51:22 +03:00
Serdar Dogruyol
7358994e91
Fix multipart upload and back params.files ( #499 )
2018-11-05 02:20:21 +03:00
Serdar Dogruyol
207f38251a
Remove Kemal::OverrideMethodHandler
2018-11-05 02:18:52 +03:00
Julien Reichardt
21ab64511a
Add allocation optimizations ( #487 )
2018-11-01 14:29:05 +03:00
Serdar Dogruyol
a60168d039
Add docs to Kemal::OverrideMethodHandler
2018-10-26 18:45:04 +03:00
Serdar Dogruyol
3f7c8b4577
Add Kemal::OverrideMethodHandler
2018-10-26 15:00:24 +03:00
Brian Douglas Smith
b389022b35
Remove deprecated alias HTTP::Server#bind_ssl ( #495 )
2018-09-20 11:15:05 +03:00
Serdar Dogruyol
4bb56d2376
Only clear cached_routes if there's a route
2018-09-17 09:51:56 +03:00
Serdar Dogruyol
1a8a3c5b1d
Add cache size limit check to caching routes
2018-09-16 15:43:53 +03:00
Serdar Dogruyol
8fb028149b
Cache http routes
2018-09-16 13:22:45 +03:00
Johannes Müller
1e894a39bc
Remove unused require "tempfile"
2018-09-06 11:17:30 +02:00
Serdar Dogruyol
e468e2e340
route_defined? -> route_found?
2018-08-13 19:21:18 +03:00
Serdar Dogruyol
2b3ae85c34
Move response under ext
2018-08-13 16:29:32 +03:00