ejdb2-binding-0.3.0.2: Binding to EJDB2 C library, an embedded JSON noSQL database
Safe HaskellSafe-Inferred
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

Instances

Instances details
Storable OptionsB Source # 
Instance details

Defined in Database.EJDB2.HTTP

build :: Options -> IO OptionsB Source #

Create Storable version of Options