Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
rejectRequestWith :: PendingConnection -> RejectRequest -> IO ()websockets Network.WebSockets No documentation available.
requestHeaders :: RequestHead -> Headerswebsockets Network.WebSockets No documentation available.
requestPath :: RequestHead -> !ByteStringwebsockets Network.WebSockets No documentation available.
requestSecure :: RequestHead -> Boolwebsockets Network.WebSockets No documentation available.
createRequest :: Protocol -> ByteString -> ByteString -> Bool -> Headers -> IO RequestHeadwebsockets Network.WebSockets.Client No documentation available.
-
websockets Network.WebSockets.Connection This datatype allows you to set options for acceptRequestWith. It is strongly recommended to use defaultAcceptRequest and then modify the various fields, that way new fields introduced in the library do not break your code.
AcceptRequest :: !Maybe ByteString -> Headers -> AcceptRequestwebsockets Network.WebSockets.Connection No documentation available.