org: add tangle

master
nixo 2020-11-01 21:09:36 +01:00
parent 7a2e06129d
commit d105d81f5c
1 changed files with 3 additions and 3 deletions

View File

@ -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!