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.
setSingleRowMode :: Connection -> IO Boolpostgresql-libpq Database.PostgreSQL.LibPQ Select single-row mode for the currently-executing query. This function can only be called immediately after PQsendQuery or one of its sibling functions, before any other operation on the connection such as PQconsumeInput or PQgetResult. If called at the correct time, the function activates single-row mode for the current query and returns 1. Otherwise the mode stays unchanged and the function returns 0. In any case, the mode reverts to normal after completion of the current query.
setnonblocking :: Connection -> Bool -> IO Boolpostgresql-libpq Database.PostgreSQL.LibPQ Sets the nonblocking status of the connection.
setHeader :: Text -> Text -> ActionM ()scotty Web.Scotty Set one of the response headers. Will override any previously set value for that header. Header names are case-insensitive.
setMaxRequestBodySize :: Kilobytes -> ScottyM ()scotty Web.Scotty Set global size limit for the request body. Requests with body size exceeding the limit will not be processed and an HTTP response 413 will be returned to the client. Size limit needs to be greater than 0, otherwise the application will terminate on start.
settings :: Options -> Settingsscotty Web.Scotty Warp Settings Note: to work around an issue in warp, the default FD cache duration is set to 0 so changes to static files are always picked up. This likely has performance implications, so you may want to modify this for production servers using setFdCacheDuration.
setCookie :: forall (m :: Type -> Type) . MonadIO m => SetCookie -> ActionT m ()scotty Web.Scotty.Cookie Set a cookie, with full access to its options (see SetCookie)
setCookieDomain :: SetCookie -> Maybe ByteStringscotty Web.Scotty.Cookie The domain for which the cookie should be sent. Default value: Nothing (The browser defaults to the current domain).
setCookieExpires :: SetCookie -> Maybe UTCTimescotty Web.Scotty.Cookie The time at which to expire the cookie. Default value: Nothing (The browser will default to expiring a cookie when the browser is closed).
setCookieHttpOnly :: SetCookie -> Boolscotty Web.Scotty.Cookie Marks the cookie as "HTTP only", i.e. not accessible from Javascript. Default value: False
setCookieMaxAge :: SetCookie -> Maybe DiffTimescotty Web.Scotty.Cookie The maximum time to keep the cookie, in seconds. Default value: Nothing (The browser defaults to expiring a cookie when the browser is closed).