-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HandlerFunction not defined #24
Comments
Hi @macroscian 👋 Good timing. It's been a while since I looked at this, but coincidentally, I was just updating some stuff. Yeah. The issue is that HTTP v0.8 was quite a change from v0.7. I'll try to push something to Edit: Pushed 😊 |
The version I just pushed to One thing I liked about this package was the ability to change routes on the fly even when the server is running. When I switched to using Now, I am moving back to my original router, which, for the time being, means variable / parametric routes will not work. Were you relying on that? I'd like to add parametric routes back at some point. If you need them, I could make it a priority. |
I haven't updated the docs yet, but there are no If you want a Endpoint("/post/endpoint",POST) do request::HTTP.Request
# process the `POST`
end The default method is Endpoint("/get/endpoint") do request::HTTP.Request
# process the `GET`
end Please let me know if you have any problems. I want to tag a version, but I still need to test the |
That's brilliant as ever, thanks Eric. Serving the files now works great, but I did notice something odd about websockets. I've put the Julia error log below - it tracks back to a loop in julia that updates a javascript progress bar thus: Personally, I don't use parametric routing, so don't prioritise it (or anything else!) on my behalf. -Thx. Error: error handling request |
Oh man! Was afraid there could be some problems with websockets. I'm squashing 10s of issues on WebSockets.jl trying to upgrade it to HTTP v0.8 and then I'll be able to dig in and try to see what is going on. Your issues sounds like it might be HTTP related. You might check to see if there is a relevant outstanding issue there until I can have a look. |
Pages.jl/src/Pages.jl
Line 17 in 73cb8f2
This is probably a failure in my setup, but I'm failing to get Pages.start() to work (in julia 1.0.3) when I'm bundling it up in a fresh container.
gives
UndefVarError: HandlerFunction not defined
relevant lines of pkg status are
[cd3eb016] + HTTP v0.8.0
[7c165e09] + Pages v0.2.2
Any help gratefully received - many thanks.
The text was updated successfully, but these errors were encountered: