A page a browser may open the door from: https:// or http://, a
lower-case host and an optional port, exactly as a browser sends it in
Origin.
Modulevortex-ws-0.2.1GHC2024
Vortex.Ws.Door.Types
The values a door's settings speak, and the DoorSettings a settings program folds to.
Synopsis
- newtype Origin
- value fromOrigin
- value mkOrigin
- data Rate
- data Statement
- value statementVerb
- data DoorSettings
- data SettingsError
- value settingsErrorText
- value lawful
- Packagevortex-ws-0.2.1
- Exports10
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceTypes.hs
Names
Measures
A token bucket's shape: how many frames may arrive at once, and how many more each second.
Constructors
Statements and the settings they fold to
One thing a settings program says. The settled form of a program is the Show of its statements, folded again when it is read back.
Everything the door holds a connection to before and while it is a session.
Constructors
MkDoorSettingsdoorOrigins :: [Origin]The pages a handshake may come from; any other is refused, 403.
doorHandshake :: IntSeconds a connection has to finish its opening handshake.
doorFrameBytes :: IntThe largest frame, and the largest message; more ends the connection.
doorPing :: IntSeconds between pings, which keep an idle connection alive through a proxy.
doorSessions :: IntSessions open at once; one more is refused, 503.
doorSessionsPerPeer :: IntSessions open at once from one peer.
doorPeerRate :: RateEach peer's frames.
doorOverallRate :: RateEvery peer's frames together.
Instances2Eq, Show
Eq DoorSettingsDefined in vortex-ws-0.2.1 · Vortex.Ws.Door.TypesShow DoorSettingsDefined in vortex-ws-0.2.1 · Vortex.Ws.Door.Types
Instances2Eq, Show
Eq SettingsErrorDefined in vortex-ws-0.2.1 · Vortex.Ws.Door.TypesShow SettingsErrorDefined in vortex-ws-0.2.1 · Vortex.Ws.Door.Types
The laws a door's settings keep: every measure positive and bounded, no more sessions from one peer than from all, and a bucket that can hold a frame.