Copyright | (c) Alexey Radkov 2016-2017 |
---|---|
License | BSD-style |
Maintainer | alexey.radkov@gmail.com |
Stability | experimental |
Portability | non-portable (requires POSIX) |
Safe Haskell | None |
Language | Haskell98 |
Export regular haskell functions for using in directives of nginx-haskell-module.
- ngxExportSS :: Name -> Q [Dec]
- ngxExportSSS :: Name -> Q [Dec]
- ngxExportSLS :: Name -> Q [Dec]
- ngxExportBS :: Name -> Q [Dec]
- ngxExportBSS :: Name -> Q [Dec]
- ngxExportBLS :: Name -> Q [Dec]
- ngxExportYY :: Name -> Q [Dec]
- ngxExportBY :: Name -> Q [Dec]
- ngxExportIOYY :: Name -> Q [Dec]
- ngxExportAsyncIOYY :: Name -> Q [Dec]
- ngxExportAsyncOnReqBody :: Name -> Q [Dec]
- ngxExportServiceIOYY :: Name -> Q [Dec]
- ngxExportHandler :: Name -> Q [Dec]
- ngxExportDefHandler :: Name -> Q [Dec]
- ngxExportUnsafeHandler :: Name -> Q [Dec]
- newtype CInt :: * = CInt Int32
- newtype CUInt :: * = CUInt Word32
Exporters
ngxExportYY :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> ByteString
for using in directive haskell_run.
ngxExportBY :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> Bool
for using in directive haskell_run.
ngxExportIOYY :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> IO
ByteString
for using in directive haskell_run.
ngxExportAsyncIOYY :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> IO
ByteString
for using in directive haskell_run_async.
ngxExportAsyncOnReqBody :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> ByteString
-> IO
ByteString
for using in directive haskell_run_async_on_request_body.
The first argument of the exported function contains buffers of the client request body.
ngxExportServiceIOYY :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> Bool
-> IO
ByteString
for using in directive haskell_run_service.
The boolean argument of the exported function marks that the service is being run for the first time.
ngxExportHandler :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> (ByteString
, String
, Int
)
for using in directives haskell_content and haskell_static_content.
The first element in the returned 3-tuple of the exported function is the content, the second is the content type, and the third is the HTTP status.
ngxExportDefHandler :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> ByteString
for using in directives haskell_content and haskell_static_content.
ngxExportUnsafeHandler :: Name -> Q [Dec] Source #
Exports a function of type
ByteString
-> (ByteString
, ByteString
, Int
)
for using in directive haskell_unsafe_content.
The first element in the returned 3-tuple of the exported function is the content, the second is the content type, and the third is the HTTP status. Both the content and the content type are supposed to be referring to low-level string literals which do not need to be freed upon the request termination and must not be garbage-collected in the Haskell RTS.
Re-exported data constructors from Foreign.C
Haskell type representing the C int
type.