Loïc Hoguin
a02d6590c4
Add upcoming Clear Site Data draft to the list
2018-09-07 13:51:25 +02:00
Loïc Hoguin
3bda790901
Clarify the DEP_PLUGINS line in the Getting Started
2018-08-13 11:14:53 +02:00
Loïc Hoguin
2577068bf2
Remove an incorrect statement from the guide
2018-08-06 13:31:09 +02:00
Loïc Hoguin
a76c32db5e
Introduce undocumented option logger
...
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-28 17:10:18 +02:00
Loïc Hoguin
1614335436
Remove a stream handlers related todo not worth doing
2018-06-27 18:08:29 +02:00
Loïc Hoguin
faefb634de
Document cowboy_req:stream_events/3
2018-06-27 10:29:49 +02:00
Loïc Hoguin
5001fcbc34
Add missing frame types to websocket_handle specs/docs
...
Thanks Artem.
2018-06-26 10:59:22 +02:00
Eric Meadows-Jönsson
f08f4610a0
Add streaming without chunking for HTTP/1.1
...
If content-length is set in the response headers
we can skip chunked transfer-encoding.
2018-06-25 11:44:38 +02:00
Loïc Hoguin
69451dd98d
The TLS certificate can be accessed directly
2018-06-11 20:51:57 +02:00
Loïc Hoguin
5758336453
Fix an example missing a " in the manual
2018-06-11 15:57:21 +02:00
Loïc Hoguin
76f19cf52d
Fix some formatting issues in the manual
2018-06-08 13:27:03 +02:00
Loïc Hoguin
a331145cde
Fix an incorrect section_title level in the manual
2018-06-06 18:03:01 +02:00
Loïc Hoguin
54c65ae49e
Fix the cowboy_stream manual page name
2018-06-06 14:42:39 +02:00
Loïc Hoguin
714b11639e
Add a comment about push requiring a secure connection
2018-06-04 14:32:50 +02:00
Loïc Hoguin
0e629f4799
Add option linger_timeout to cowboy_http
2018-05-16 16:01:30 +02:00
Loïc Hoguin
f0d9805601
Fix cowboy_http2 manual page formatting
...
[ci skip]
2018-05-02 11:08:40 +02:00
Loïc Hoguin
28d3515d71
Remove a bunch of todos
2018-04-30 18:39:27 +02:00
Loïc Hoguin
5d5f3f8461
Update Cowboy to 2.4.0
2018-04-30 15:12:09 +02:00
Loïc Hoguin
2db5ffbf84
Add SETTINGS ack timeout and option settings_timeout
2018-04-28 11:00:50 +02:00
Loïc Hoguin
9a29aea148
Add options controlling maximum h2 frame sizes
2018-04-27 17:58:37 +02:00
Loïc Hoguin
d38d86c4a9
Add options controlling initial control flow windows
2018-04-26 22:08:05 +02:00
Loïc Hoguin
7373822b86
Add the max_concurrent_streams h2 option
2018-04-25 21:32:58 +02:00
Loïc Hoguin
8f4adf437c
Add options to control h2's SETTINGS_HEADER_TABLE_SIZE
2018-04-25 16:55:52 +02:00
Loïc Hoguin
bbfc1569cc
Add initial implementation of Websocket over HTTP/2
...
Using the current draft:
https://tools.ietf.org/html/draft-ietf-httpbis-h2-websockets-01
2018-04-04 17:23:37 +02:00
Loïc Hoguin
a7b06f2e13
Tentatively update Cowboy to 2.3.0
2018-03-28 18:15:40 +02:00
Kirill Kinduk
4c34774b7e
Add max_frame_size option for websocket handlers
...
Option allows to limit a frame by size before decoding its payload.
LH: I have added a test for when the limit is reached on a nofin
fragmented frame (the last commit addressed that case but it had
no test). I have fixed formatting and other, and changed the
default value to infinity since it might otherwise be incompatible
with existing code. I also added documentation and a bunch of other
minor changes.
2018-03-28 16:58:02 +02:00
Gary Rennie
288deb5b88
Remove duplicate keys from map in inform docs
...
This is the equivalent way of doing the same thing using a single header.
2018-03-27 23:10:27 +02:00
Loïc Hoguin
31092b546c
Add RFC 8336 to the list
2018-03-23 16:22:04 +01:00
Loïc Hoguin
e23e12287a
Add a new relevant RFC
2018-02-15 23:33:04 +01:00
Loïc Hoguin
cbd64e617a
Add link to the PROXY protocol to the specs
...
It's very relevant even though I will probably not implement it.
2018-02-09 18:15:37 +01:00
Loïc Hoguin
50fd64ec34
Add an example with a Websocket close frame
...
Thanks benbro!
2018-01-29 13:03:42 +01:00
Loïc Hoguin
d27a373bc3
Fix a small issue in the cowboy_req:parse_cookies manual
...
Thanks benbro!
2018-01-29 12:57:33 +01:00
Loïc Hoguin
8d49ae3dda
Update Cowboy to 2.2.2
2018-01-24 11:50:07 +01:00
Loïc Hoguin
d329ca4b60
Update Cowboy to 2.2.1
2018-01-23 17:01:17 +01:00
Loïc Hoguin
7cb3a9dbda
Add RFC 8297 to the list
2018-01-02 23:09:09 +01:00
Loïc Hoguin
572d38082f
Document the missing inform stream handler command
2017-12-13 12:43:28 +01:00
Loïc Hoguin
388a68fc2e
Update Cowboy to 2.2.0
2017-12-11 14:17:38 +01:00
Loïc Hoguin
364a3527d4
Document trailers in the guide
2017-12-11 12:43:14 +01:00
Loïc Hoguin
6d65cd0d38
Small documentation tweaks
2017-12-11 11:56:14 +01:00
Loïc Hoguin
4c22bdbcb7
Document 2.2 changes and the new stream_trailers function
2017-12-11 11:00:47 +01:00
Loïc Hoguin
17719a136d
Add the few remaining tests to the rfc7231 test suite
2017-12-08 20:38:31 +01:00
Loïc Hoguin
b000d53855
Add more rfc7231 tests and a new max_skip_body_length option
...
The option controls how much body we accept to skip for HTTP/1.1
connections when the user code did not consume the body fully.
It defaults to 1MB.
2017-12-07 22:33:52 +01:00
Loïc Hoguin
32d9d494c7
Add a changelog for cowboy_rest
2017-11-09 13:23:31 +00:00
Loïc Hoguin
f200a6febd
Fix the introduction version for the new 2.1 functions
2017-11-09 13:21:29 +00:00
Loïc Hoguin
44d96ed9be
Add missing changes for 2.1 release
2017-11-09 12:05:22 +00:00
Loïc Hoguin
1e88324864
Update Cowboy to 2.1.0
...
Also add OTP-20.1.4 to CI.
2017-11-08 14:05:30 +00:00
Loïc Hoguin
836342abb8
Add {switch_handler, Module} return value to cowboy_rest
...
Also {switch_handler, Module, Opts}.
Allows switching to a different handler type. This is
particularly useful for processing most of the request
with cowboy_rest and then streaming the response body
using cowboy_loop.
2017-11-01 16:27:26 +00:00
Loïc Hoguin
f3d6b05b86
Add cowboy_req:inform/2,3
...
User code can now send as many 1xx responses as necessary.
2017-10-29 21:03:04 +00:00
Loïc Hoguin
ef58e15547
Introduce cowboy_req:sock/1 and cowboy_req:cert/1
...
To obtain the local socket ip/port and the client TLS
certificate, respectively.
2017-10-25 21:03:26 +01:00
Luke Bakken
4090adaecc
Add migration note concerning multiple headers
2017-10-23 14:59:45 +01:00