module

Alumna::Http

Constants

WEBSOCKET_PROVIDER = "websocket"

ctx.provider for every WebSocket session. Not "rest" or "local".

Class methods

accept_websocket(http_ctx : HTTP::Server::Context, app : App, remote_ip : String) : Nil

Handshake or an error response. On success, HTTP::Server runs the upgrade IO after this method returns. Do not parse a REST body.

Source
resolve_mounted_service(services : Hash(String, Service), path : String) : Tuple(Service, String | Nil) | Nil

Same path match as REST. /items and /items/ are identical.

Source
websocket_upgrade?(request : HTTP::Request) : Bool

RFC 6455: Upgrade: websocket and Connection contains Upgrade.

Source

Macros

define_overlay_view(name, source_type, downcase)
Source

Nested types