Skip to content

Commit d49b3e2

Browse files
app-servers: hint http-kit returns a promise to server
1 parent d592754 commit d49b3e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/app-servers/create-server.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ To create a web (http) server using a common library, e.g. Jetty or Http-kit
6666

6767
[Http-kit server documentation](http://http-kit.github.io/server.html) contains details of asynchronous websockets and HTTP streaming configurations.
6868

69+
<!--
70+
!!! HINT "Server uses a promise to create reference"
71+
[Starting a http-kit server creates a promise as a reference](https://github.com/http-kit/http-kit/blob/master/src/org/httpkit/server.clj){target=_blank} to the server instance. This promise is used to stop and send timeout values to the running server. Note that if the server process inside the promise fails, the server error message may only be seen if it is defreferenced (to confirm)
72+
-->
73+
6974

7075
## Request handler function
7176

0 commit comments

Comments
 (0)