0 | module Node.HTTP.CreateServer
3 | import Node.Internal.Support
7 | constructor MkOptions
8 | insecureHTTPParser: Bool
12 | keepAliveInitialDelay: Int
15 | defaultOptions : Options
16 | defaultOptions = MkOptions
17 | { insecureHTTPParser = False
18 | , maxHeaderSize = 16384
21 | , keepAliveInitialDelay = 0
26 | ( insecureHTTPParser
30 | , keepAliveInitialDelay
32 | insecureHTTPParser: _bool(insecureHTTPParser),
34 | noDelay: _bool(noDelay),
35 | keepAlive: _bool(keepAlive),
36 | keepAliveInitialDelay
39 | ffi_convertOptions :
40 | (insecureHTTPParser: Bool) ->
41 | (maxHeaderSize: Int) ->
43 | (keepAlive: Bool) ->
44 | (keepAliveInitialDelay: Int) ->
48 | convertOptions : Options -> Node Options
49 | convertOptions o = ffi_convertOptions
50 | o.insecureHTTPParser
54 | o.keepAliveInitialDelay