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