Comments (4)
Agreed. However, I'm not sure how to generalize a trigger to take over requests for the next service.
from armeria.
This issue will require two following changes:
- Make
DecodeResult.NOT_FOUND
not fail immediately. LetHttpServerHandler
try again until it tries all matching services. - Define a mechanism for
ServiceInvocationHandler
that does the same job withDecodeResult.NOT_FOUND
.
Perhaps we could define some exception type? We have ServiceNotFoundException
already, so we could use it for this purpose. It's actually the exception used when HttpServerHandler
gets DecodeResult.NOT_FOUND
, so it seems to make sense to me.
Another issue to consider is the case where a service wants to tell the session layer that the path does not exist and it does not want other services to take the request over. However, I'm not sure if we should consider this because usually they will just end up hitting the catch-all path mapping or making HttpServerHandler
return 404.
from armeria.
Another issue to consider is the case where a service wants to tell the session layer that the path does not exist and it does not want other services to take the request over. However, I'm not sure if we should consider this because usually they will just end up hitting the catch-all path mapping or making HttpServerHandler return 404.
I think we need to consider the case when a user does want the last service to catch 404
and response with the custom error page. In this case, propagation of 404
should not be done.
from armeria.
This actually was fixed in #60 slightly differently.
from armeria.
Related Issues (20)
- Support gRPC cancellation HOT 3
- Request timeout is resulting HOT 8
- Consider making `ContentTooLargeException` extend `HttpStatusException` HOT 1
- Respond 408 status when the server didn't receive request fully until it's timed out HOT 5
- Some dependencies in /core module are in the wrong scope. HOT 5
- Provide a way to ignore dependencies when performing `dependencyUpdates`
- Add /info URL to provide information about server application HOT 2
- Decouple HTTP/2 pings from idle timeout machinery and make then useful on their own
- Write docs for `context-propagation`
- Support for Parameter Options in Parameterized Path
- Make sure all tests pass when io_uring is enabled HOT 1
- Documentation for OAuth 2.0 client
- RequestTimeout is 503 with ThrottlingStrategy HOT 3
- Make `defaultUseHttp2Preface` flag more explicit
- Mask request and response logs from HTTP client HOT 1
- Automatically remove multipart temporary files
- Fix `socketConnect`, `pendingAcquisition` timing end method check condition
- Provide a way to customize meters
- Add pendingResponses to ServerMetrics
- Add ServerBuilder.coroutinService as Kotlin extension method
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 armeria.