Comments (4)
That's correct! We model somewhat after express here, in that /route/ == /route
in terms of matching. This is something I could update though, is there a use case you're after?
from thruster.
I'm not sure the current behavior is correct. See these two items:
Bottom line: treating /foo/
and /foo
as synonyms for the same resource can interfere with the use of relative URLs. A redirect, which can be applied as a top-level middleware by those users who want it, solves the problem without introducing another. At least that's my understanding.
from thruster.
from thruster.
It looks like this has been resolved in v1.1.10. Looking forward to trying it out!
from thruster.
Related Issues (20)
- Proposal: Using traits instead of static fn for middleware chains HOT 5
- [Feature] Add ability to shutdown server once it has been started HOT 7
- Smol support? HOT 1
- No readme on crates.io HOT 2
- Add release 1.1.2 on GitHub HOT 1
- middleware tuple compile errors HOT 2
- Get POST body without introducing crash bug? HOT 2
- Alias ideas HOT 6
- How to set CORS with thruster? HOT 14
- [feature request] Make context.set(header_key, header_value) available to set header HOT 5
- [FEATURE REQUEST] Add example for parse and validate a JSON body and query params HOT 4
- [FEATURE REQUEST] Easier access to read request headers HOT 3
- [FEATURE REQUEST] Make extended example on generate Context HOT 3
- [FEATURE REQUEST] Easier method to read request params HOT 3
- [REQUEST] Remove Releases and packages from GitHub repos HOT 1
- Incorrect ThrusterError struct definition in error handling docs HOT 1
- external middleware (plugins/libraries) HOT 26
- testing module seems to only have one `request` method HOT 4
- reading cookies/headers from context HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thruster.