You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Node/HTTP.purs
+26-4
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,28 @@
1
1
-- | This module defines low-level bindings to the Node HTTP module.
2
2
3
-
moduleNode.HTTPwhere
3
+
moduleNode.HTTP
4
+
( Server
5
+
, Request
6
+
, Response
7
+
, HTTP
8
+
9
+
, createServer
10
+
, listen
11
+
, ListenOptions
12
+
, listenSocket
13
+
14
+
, httpVersion
15
+
, requestHeaders
16
+
, requestMethod
17
+
, requestURL
18
+
, requestAsStream
19
+
20
+
, setHeader
21
+
, setHeaders
22
+
, setStatusCode
23
+
, setStatusMessage
24
+
, responseAsStream
25
+
) where
4
26
5
27
importPrelude
6
28
@@ -35,16 +57,16 @@ foreign import listenImpl :: forall eff. Server -> Int -> String -> Nullable Int
35
57
listen::foralleff. Server->ListenOptions->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
36
58
listen server opts done = listenImpl server opts.port opts.hostname (toNullable opts.backlog) done
37
59
38
-
-- | Listen on a unix socket. The specified callback will be run when setup is complete.
39
-
foreignimportlistenSocket::foralleff. Server->String->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
40
-
41
60
-- | Options to be supplied to `listen`. See the [Node API](https://nodejs.org/dist/latest-v6.x/docs/api/http.html#http_server_listen_handle_callback) for detailed information about these.
42
61
typeListenOptions=
43
62
{hostname::String
44
63
, port::Int
45
64
, backlog::MaybeInt
46
65
}
47
66
67
+
-- | Listen on a unix socket. The specified callback will be run when setup is complete.
68
+
foreignimportlistenSocket::foralleff. Server->String->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
0 commit comments