diff --git a/Project.toml b/Project.toml index 8ed806016..a20b56fe6 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Genie" uuid = "c43c736e-a2d1-11e8-161f-af95117fbd1e" authors = ["Adrian Salceanu "] -version = "5.21.2" +version = "5.22.0" [deps] ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63" diff --git a/src/Server.jl b/src/Server.jl index 6cf48072c..51c44700d 100644 --- a/src/Server.jl +++ b/src/Server.jl @@ -77,6 +77,8 @@ function up(port::Int, open_browser::Bool = false, reuseaddr::Bool = Distributed.nworkers() > 1, updateconfig::Bool = true, + protocol::String = "http", + query::Dict = Dict(), http_kwargs...) :: ServersCollection if server !== nothing @@ -127,7 +129,10 @@ function up(port::Int, end end - server_url = "http://$host:$port" + server_url = "$protocol://$host:$port" + if ! isempty(query) + server_url *= ("?" * join(["$(k)=$(v)" for (k, v) in query], "&")) + end status = if async print_server_status("Web Server starting at $server_url")