Hoogle Search
Within LTS Haskell 24.50 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
websockets Network.WebSockets An HTTP request. The request body is not yet read.
RequestHead :: ByteString -> Headers -> Bool -> RequestHeadwebsockets Network.WebSockets No documentation available.
RequestRejected :: RequestHead -> ResponseHead -> HandshakeExceptionwebsockets Network.WebSockets The request was well-formed, but the library user rejected it. (e.g. "unknown path")
acceptRequest :: PendingConnection -> IO Connectionwebsockets Network.WebSockets Accept a pending connection, turning it into a Connection.
acceptRequestWith :: PendingConnection -> AcceptRequest -> IO Connectionwebsockets Network.WebSockets This function is like acceptRequest but allows you to set custom options using the AcceptRequest datatype.
defaultAcceptRequest :: AcceptRequestwebsockets Network.WebSockets No documentation available.
defaultRejectRequest :: RejectRequestwebsockets Network.WebSockets No documentation available.
getRequestSubprotocols :: RequestHead -> [ByteString]websockets Network.WebSockets List of subprotocols specified by the client, in order of preference. If the client did not specify a list of subprotocols, this will be the empty list.
pendingRequest :: PendingConnection -> RequestHeadwebsockets Network.WebSockets Useful for e.g. inspecting the request path.
rejectRequest :: PendingConnection -> ByteString -> IO ()websockets Network.WebSockets Requires calling pendingStream and close.