Build a ``Sec-WebSocket-Protocol`` header. This is the reverse of :func:`parse_subprotocol`.
(subprotocols: Sequence[Subprotocol])
| 456 | |
| 457 | |
| 458 | def build_subprotocol(subprotocols: Sequence[Subprotocol]) -> str: |
| 459 | """ |
| 460 | Build a ``Sec-WebSocket-Protocol`` header. |
| 461 | |
| 462 | This is the reverse of :func:`parse_subprotocol`. |
| 463 | |
| 464 | """ |
| 465 | return ", ".join(subprotocols) |
| 466 | |
| 467 | |
| 468 | build_subprotocol_list = build_subprotocol # alias for backwards compatibility |
no outgoing calls
searching dependent graphs…