Alumna::Http
Constants
WEBSOCKET_PROVIDER = "websocket"
ctx.provider for every WebSocket session. Not "rest" or "local".
Class methods
Handshake or an error response. On success, HTTP::Server runs the upgrade IO after this method returns. Do not parse a REST body.
Finds one cookie by name in a Cookie header. Does not build a cookie list. The value string is the only allocation. Name match is case-sensitive.
resolve_mounted_service(services : Hash(String, Service), path : String) : Tuple(Service, String | Nil) | Nil
Same path match as REST. /items and /items/ are identical.
RFC 6455: Upgrade: websocket and Connection contains Upgrade.
Macros
define_overlay_view(name, source_type, downcase)
SourceNested types
- Alumna::Http::HeadersView
- Alumna::Http::IPCidr
- Alumna::Http::JsonSerializer
- Alumna::Http::LimitedIO
- Alumna::Http::MsgpackSerializer
- Alumna::Http::ParamsView
- Alumna::Http::Responder
- Alumna::Http::Router
- Alumna::Http::Serializer
- Alumna::Http::Serializers
- Alumna::Http::TrustedProxySet
- Alumna::Http::WebSocketSession
- Alumna::Http::WebSocketSocket