0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00
cowboy/test
Loïc Hoguin b2243aa544 Optimize cowboy_protocol
* #state{} changes are avoided where possible
* #state{} is now smaller and use less memory
* the Req object is created only after the whole request is parsed
* parsing makes use of a single binary match context
* external calls are avoided in the critical path
* URL fragment is now extracted properly (retrieval API next commit)
* argument orders to local functions modified to avoid extra operations
* dispatching waits as long as possible before tokenizing host/path
* handler opts are no longer shown in the error messages except in init

The code may not look as beautiful as it was before. But it really
is, for parsing code. The parsing section of the file may be skipped
if your eyes start to burn.
2012-09-26 14:20:29 +02:00
..
autobahn_SUITE_data Update autobahn suite to use autobahntestsuite 2012-04-06 17:53:53 +02:00
http_SUITE_data Initial work on a ct test suite for the HTTP protocol. 2011-04-08 16:30:37 +02:00
autobahn_SUITE.erl Switch to Ranch for connection handling 2012-08-27 11:50:35 +02:00
chunked_handler.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_echo_body.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_errors.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_init_shutdown.erl Don't use decode_packet/3 for parsing the headers 2012-09-21 09:18:56 +02:00
http_handler_long_polling.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_loop_timeout.erl Rename cowboy_http_req to cowboy_req 2012-08-27 13:28:57 +02:00
http_handler_multipart.erl Improve consistency of return types for cowboy_req API 2012-09-17 13:56:58 +02:00
http_handler_set_resp.erl Don't use decode_packet/3 for parsing the headers 2012-09-21 09:18:56 +02:00
http_handler_stream_body.erl Improve consistency of return types for cowboy_req API 2012-09-17 13:56:58 +02:00
http_SUITE.erl Optimize cowboy_protocol 2012-09-26 14:20:29 +02:00
rest_forbidden_resource.erl Don't use decode_packet/3 for parsing the request-line 2012-09-21 08:54:57 +02:00
rest_nodelete_resource.erl Don't use decode_packet/3 for parsing the request-line 2012-09-21 08:54:57 +02:00
rest_resource_etags.erl Rename cowboy_http_rest to cowboy_rest 2012-08-27 13:39:59 +02:00
rest_simple_resource.erl Rename cowboy_http_rest to cowboy_rest 2012-08-27 13:39:59 +02:00
websocket_echo_handler.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
websocket_handler.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
websocket_handler_init_shutdown.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00
ws_SUITE.erl Switch to Ranch for connection handling 2012-08-27 11:50:35 +02:00
ws_timeout_hibernate_handler.erl Rename cowboy_http_websocket to cowboy_websocket 2012-08-27 14:00:28 +02:00