class Onyx::HTTP::Middleware::Router::UpgradeRequired

Overview

Raised when router has as ws route for this path. The "Upgrade" header is set to "Websocket" in Middleware::Router. The default status code is 426. See https://httpstatuses.com/426.

Defined in:

onyx-http/middleware/router/upgrade_required.cr

Instance methods inherited from class Onyx::HTTP::Error(426)

code : Int32 code, payload payload

Instance methods inherited from class Exception

status_message status_message