Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module is in charge of mapping HTTP requests to PostgreSQL queries. Some of its functionality includes:
- Mapping HTTP request methods to proper SQL statements. For example, a GET request is translated to executing a SELECT query in a read-only TRANSACTION.
- Producing HTTP Headers according to RFCs.
- Content Negotiation
Synopsis
- type SignalHandlerInstaller = AppState -> IO ()
- type SocketRunner = Settings -> Application -> FileMode -> FilePath -> IO ()
- postgrest :: LogLevel -> AppState -> IO () -> Application
- run :: SignalHandlerInstaller -> Maybe SocketRunner -> AppState -> IO ()
Documentation
type SignalHandlerInstaller = AppState -> IO () Source #
type SocketRunner = Settings -> Application -> FileMode -> FilePath -> IO () Source #
run :: SignalHandlerInstaller -> Maybe SocketRunner -> AppState -> IO () Source #