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
foreignimportlistenImpl::foralleff. Server->Int->String->NullableInt->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
55
56
57
+
foreignimportcloseImpl::foralleff. Server->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
58
+
56
59
-- | Listen on a port in order to start accepting HTTP requests. The specified callback will be run when setup is complete.
57
60
listen::foralleff. Server->ListenOptions->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
58
61
listen server opts done = listenImpl server opts.port opts.hostname (toNullable opts.backlog) done
59
62
63
+
-- | Close a listening HTTP server. The specified callback will be run the server closing is complete.
64
+
close::foralleff. Server->Eff (http::HTTP | eff) Unit->Eff (http::HTTP | eff) Unit
65
+
close server done = closeImpl server done
66
+
60
67
-- | 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.
0 commit comments