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
Index path documentation #214
Comments
I agree, the documentation there should be improved. It also seems like the |
Ah, yes that would definitely catch me out. Though I must say, so far it's an awesome framework. Style wise it just feels right. I tried doing something similar once and made a behaviour tree styled framework in Dart for backends, but this has the HTTP layer covered instead of just a plain old BT, and it's far easier to use! Are there any inverter decorates? I.e. paths that don't match the criteria ( |
Not built-in. I believe an inverter can be confusing to recognize what exactly it is doing. Particularly, is it just rejecting if the path doesn't match, or does it also "consume" that part of the path. What I mean is, assuming some sort of |
Got tripped by both those issues today. Is there a way to have path!() not match additional components? And I was also expecting |
warp v0.2 includes #359, which makes |
Wasn't entirely clear on how to define an index route (i.e. "" or "/"), but found #118 which helped out. Not sure if some documentation on
warp::path
might make it easier to find for future users? I originally assumedwarp::path::end()
matched the URI backwards, i.e. "something/something/this", andwarp::path()
orwarp::path("/")
matched an index or something.The text was updated successfully, but these errors were encountered: