Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-11-09 | Add sendfile support to cowboy_req:stream_body | Loïc Hoguin | |
It is now possible to stream one or more sendfile tuples. A simple example of what can now be done would be for example to build a tar file on the fly using the sendfile syscall for sending the files, or to support Range requests with more than one range with the sendfile syscall. When using cowboy_compress_h unfortunately we have to read the file in order to send it. More options will be added at a later time to make sure users don't read too much into memory. This is a new feature however so existing code is not affected. Also rework cowboy_http's data sending to be flatter. | |||
2018-10-28 | Exit gracefully on parent exit/sys:terminate/2,3 | Loïc Hoguin | |
2018-09-12 | Do not send a 101 after a final response in switch_protocol | Loïc Hoguin | |
2018-06-28 | Introduce undocumented option logger | Loïc Hoguin | |
This commit reworks the logging that Cowboy does via error_logger to make the module that will do the actual logging configurable. The logger module interface must be the same as logger and lager: a separate function per log level with the same log levels they support. The default behavior remains to call error_logger, although some messages were downgraded to warnings instead of errors. Since error_logger only supports three different log levels, some messages may get downgraded/upgraded depending on what the original log level was to make them compatible with error_logger. The {log, Level, Format, Args} command was also added to stream handlers. Stream handlers should use this command to log messages because it allows writing a stream handler to intercept some of those messages and extract information or block them as necessary. The logger option only applies to Cowboy itself, not to the messages Ranch logs, so more work remains to be done in that area. | |||
2018-06-27 | Remove a stream handlers related todo not worth doing | Loïc Hoguin | |
2018-06-06 | Fix the cowboy_stream manual page name | Loïc Hoguin | |
2018-04-30 | Remove a bunch of todos2.4.0 | Loïc Hoguin | |
2017-12-13 | Document the missing inform stream handler command2.2.0 | Loïc Hoguin | |
2017-12-11 | Small documentation tweaks | Loïc Hoguin | |
2017-12-11 | Document 2.2 changes and the new stream_trailers function | Loïc Hoguin | |
2017-10-22 | Ensure stream terminate is called when switching protocols | Loïc Hoguin | |
2017-10-02 | Fix the documentation for the command flow | Loïc Hoguin | |
2017-04-18 | Pass the HTTP/2 switch_protocol event to stream handlers | Loïc Hoguin | |
To accomplish this the code for sending the 101 response was moved to the cowboy_http2 module. | |||
2017-04-10 | Initial cowboy_stream manual | Loïc Hoguin | |