Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/plug/cowboy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ defmodule Plug.Cowboy do
Defaults to `false`.

* `:stream_handlers` - List of Cowboy `stream_handlers`,
see [Cowboy docs](https://ninenines.eu/docs/en/cowboy/2.12/manual/cowboy_http/).
see [Cowboy docs](https://ninenines.eu/docs/en/cowboy/2.18/manual/cowboy_http/).

* `:protocol_options` - Specifies remaining protocol options,
see the [Cowboy docs](https://ninenines.eu/docs/en/cowboy/2.12/manual/cowboy_http/).
see the [Cowboy docs](https://ninenines.eu/docs/en/cowboy/2.18/manual/cowboy_http/).

* `:transport_options` - A keyword list specifying transport options,
see [Ranch docs](https://ninenines.eu/docs/en/ranch/1.7/manual/ranch/).
Expand Down Expand Up @@ -73,7 +73,7 @@ defmodule Plug.Cowboy do
Keep in mind that increasing those limits can pose a security risk.
Other times, browsers and proxies along the way may have equally strict
limits, which means the request will still fail or the URL will be
pruned. You can [consult all limits here](https://ninenines.eu/docs/en/cowboy/2.12/manual/cowboy_http/).
pruned. You can [consult all limits here](https://ninenines.eu/docs/en/cowboy/2.18/manual/cowboy_http/).

## Loopback vs Public IP Addresses

Expand Down Expand Up @@ -155,12 +155,12 @@ defmodule Plug.Cowboy do
connection_opts}`, where values are as follows:

* `handler` is a module which implements the
[`:cowboy_websocket`](https://ninenines.eu/docs/en/cowboy/2.6/manual/cowboy_websocket/)
[`:cowboy_websocket`](https://ninenines.eu/docs/en/cowboy/2.18/manual/cowboy_websocket/)
behaviour. Note that this module will NOT have its `c:cowboy_websocket.init/2` callback
called; only the 'later' parts of the `:cowboy_websocket` lifecycle are supported
* `handler_opts` is an arbitrary term which will be passed as the argument to
`c:cowboy_websocket.websocket_init/1`
* `connection_opts` is a map with any of [Cowboy's websockets options](https://ninenines.eu/docs/en/cowboy/2.6/manual/cowboy_websocket/#_opts)
* `connection_opts` is a map with any of [Cowboy's websockets options](https://ninenines.eu/docs/en/cowboy/2.18/manual/cowboy_websocket/#_opts)

"""

Expand Down
Loading