You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
document what is in the stable API and what is not (is stuff in src/examples covered by stability guarantee?)
At the moment, we expect both Mux and users to make changes to the request and response dicts and don't provide any guidance about what keys are reserved for Mux and which the user can freely use.
in the common case that @app gets a tuple, we could make the macro save the identity and names of each somewhere and the error catcher could re-write the stacktrace with that info?
mux should be viable for small, low-latency queries too, if possible
multiprocessing or multithreading support
it would be sad if you find you need better performance and it turns out Mux has some show-stoppers that mean you have to re-write in another framework.
current behaviour is that relative paths are accepted but only allow access to the root directory listing and not any of its content, which is not useful.
we can do it with root = isabspath(root) ? root : normpath(@__DIR__, root)
Here be security dragons if root is provided by the user, but there's no particular reason to let it be (check AssetRegistry integration).
return an IO body from fresp? HTTP.Response now supports this, we'd just need to return Dict(:body => open(f))
This is an issue to collect ideas on what needs to be done to get this package to v1.
Here are some of my ideas:
src/examples
covered by stability guarantee?)@app
allows hot reloadingwait(serve(app))
respond to SIGINT betterjulia myserver.jl
with ctrl-cdo
syntax works in the places we would expect it topage(app, path)
andpage(path, app)
are defined, so we can use it there, though it's a little bit weird that we have bothHTTP.Request
in thereq
dict?HTTP.Response
somehow?response
return aHTTP.Response
object #152@app
gets a tuple, we could make the macro save the identity and names of each somewhere and the error catcher could re-write the stacktrace with that info?branch(req -> predicate(req[:uri]), app)
branch(req -> predicate(req[:cookies]), app)
branch(req -> predicate(req[:headers]), app)
branch(req -> req[:uri].scheme == scheme, app)
files
#26root = isabspath(root) ? root : normpath(@__DIR__, root)
root
is provided by the user, but there's no particular reason to let it be (check AssetRegistry integration).IO
body fromfresp
? HTTP.Response now supports this, we'd just need to returnDict(:body => open(f))
files()
should URL decode the given path by default support assetserving of files with spaces #105pkgfiles
andassetserver
out ofMux.defaults
?Please add your ideas, too!
Related: #41 (GSoC 2017 ideas)
The text was updated successfully, but these errors were encountered: