Comments (1)
The beforeMatched handler you defined has a "star" path (*
) which does not have a path parameter and also an empty path parameter map.
My idea to use the context from the actual matched path breaks the feature to use path parameters in beforeMatched.
So as an alternative you can define a path parameter for the beforeMatched:
app.beforeMatched("/{test}") {
println("before matched: " + it.pathParamMap())
}
Still unsure if that is actually a bug or if it works as designed, as you should be able to have path parameters in beforeMatched handlers.
from javalin.
Related Issues (20)
- Confusing `Ws{{Action}}Context.matchedPath()` functionality
- Errors during `wsBeforeUpgrade` do not invoke the Request Logger HOT 1
- Support for multiple Request Loggers HOT 4
- WebSocket RequestLogger `onUpgrade`
- Define `wsBeforeUpgrade` via WsConfig HOT 2
- new Javalin.startAndJoin() method HOT 2
- "AccessManager" in Javalin 6 is buggy, beforeMatched and before HOT 6
- Javalin 5.6.4 crashes on java 17, while 5.6.3 works fine HOT 7
- NoClassDefFoundError for several Jetty classes on `Javalin#stop` HOT 2
- Configure multiple OpenAPI files for the Swagger UI plugin in Javalin HOT 3
- handle function called twice HOT 2
- Can the underlying HTTP be switched to Netty to improve QPS throughput? HOT 1
- Before handlers are executed even though another path already matched? HOT 2
- CorsPlugin `reflectClientOrigin` doesn't work in `Before handlers` HOT 7
- Consider introduce a configurable Timeout for JavalinTest
- ⏫ Upgrade to Micrometer 1.13 HOT 5
- Add slim Docker image temple to readme examples HOT 1
- Brotli Compression not enabling HOT 4
- Excessive null checks degrading performance HOT 3
- How to increase the Response Header size? 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 javalin.