org: add tangle
This commit is contained in:
parent
7a2e06129d
commit
d105d81f5c
|
@ -11,12 +11,12 @@ It's written in [[https://julialang.org/][Julia]].
|
|||
The usage is quite simple and similar to [[https://github.com/JuliaWeb/HTTP.jl][HTTP.jl]]
|
||||
|
||||
First, import the library
|
||||
#+begin_src julia
|
||||
#+begin_src julia :tangle server.jl
|
||||
using Gemenon
|
||||
#+end_src
|
||||
|
||||
Then, setup the SSL config
|
||||
#+begin_src julia
|
||||
#+begin_src julia :tangle server.jl
|
||||
const verify_callback(preverify_ok, x509_ctx)::Cint = 1
|
||||
|
||||
function init_ssl_context()
|
||||
|
@ -36,7 +36,7 @@ Then, setup the SSL config
|
|||
You are ready to listen for connections!
|
||||
You can do this like in Mux.jl
|
||||
|
||||
#+begin_src julia
|
||||
#+begin_src julia :tangle server.jl
|
||||
@app test = (
|
||||
req -> document(req.conn, """
|
||||
# Welcome to Gemenon!
|
||||
|
|
Loading…
Reference in New Issue