Hoogle Search
Within LTS Haskell 24.49 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
network-transport-tcp Network.Transport.TCP.Internal Start a server at the specified address. This sets up a server socket for the specified host and port. Exceptions thrown during setup are not caught. Once the socket is created we spawn a new thread which repeatedly accepts incoming connections and executes the given request handler in another thread. If any exception occurs the accepting thread terminates and calls the terminationHandler. Threads spawned for previous accepted connections are not killed. This exception may occur because of a call to accept, or because the thread was explicitly killed. The request handler is not responsible for closing the socket. It will be closed once that handler returns. Take care to ensure that the socket is not used after the handler returns, or you will get undefined behavior (the file descriptor may be re-used). The return value includes the port was bound to. This is not always the same port as that given in the argument. For example, binding to port 0 actually binds to a random port, selected by the OS.
forceOutput :: ListLikeProcessIO text char => text -> IO textprocess-extras System.Process.Common No documentation available.
forceOutput :: ListLikeProcessIO text char => text -> IO textprocess-extras System.Process.ListLike No documentation available.
formToQuery :: (QueryParam param, Monoid param, ToForm f) => f -> paramreq Network.HTTP.Req Construct query parameters from a ToForm instance. This function produces the same query params as urlEncodeAsFormStable. Note that Form doesn't have the concept of parameters with the empty value (i.e. what you can get by key =: ""). If the value is empty, it will be encoded as a valueless parameter (i.e. what you can get by queryFlag key).
formatHttpTime :: CTime -> IO ByteStringsnap-core Snap.Core Convert a CTime into an HTTP timestamp. Example:
ghci> formatHttpTime . fromIntegral $ 10 "Thu, 01 Jan 1970 00:00:10 GMT"
formatHttpTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Core Convert a CTime into an HTTP timestamp. Example:
ghci> formatHttpTime . fromIntegral $ 10 "Thu, 01 Jan 1970 00:00:10 GMT"
formatLogTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Core Convert a CTime into common log entry format.
formatHttpTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Http.Types Convert a CTime into an HTTP timestamp. Example:
ghci> formatHttpTime . fromIntegral $ 10 "Thu, 01 Jan 1970 00:00:10 GMT"
formatLogTime :: CTime -> IO ByteStringsnap-core Snap.Internal.Http.Types Convert a CTime into common log entry format.
formFileName :: FormFile a -> !ByteStringsnap-core Snap.Util.FileUploads Name of a field