ejdb2-binding-0.2.0.0: Binding to EJDB2 C library, an embedded JSON noSQL database

Safe HaskellSafe
LanguageHaskell2010

Database.EJDB2.HTTP

Synopsis

Documentation

data Options Source #

EJDB HTTP/Websocket Server options.

Constructors

Options 

Fields

  • enabled :: !Bool

    If HTTP/Websocket endpoint enabled. Default: false

  • port :: !Int32

    Listen port number, required

  • bind :: Maybe String

    Listen IP/host. Default: localhost

  • accessToken :: Maybe String

    Server access token passed in X-Access-Token header. Default: zero

  • blocking :: !Bool

    Block open thread until http service finished. Otherwise HTTP servee started in background.

  • readAnon :: !Bool

    Allow anonymous read-only database access

  • maxBodySize :: !Word64

    Maximum WS/HTTP API body size. Default: 64Mb, Min: 512K

zero :: Options Source #

Create default Options

data OptionsB Source #

Storable version of Options

build :: Options -> IO OptionsB Source #

Create Storable version of Options