Comments (3)
Thanks for the fast response! I'll check and contribute later if I can.
from armeria.
You can set a custom ServerErrorHandler
to ServerBuilder
.
@Bean
public ArmeriaServerConfigurator serverConfigurator() {
return sb -> sb.errorHandler(myServerErrorHandler);
}
- https://javadoc.io/doc/com.linecorp.armeria/armeria-javadoc/latest/com/linecorp/armeria/server/ServerErrorHandler.html
- https://javadoc.io/static/com.linecorp.armeria/armeria-javadoc/1.27.0/com/linecorp/armeria/server/ServerBuilder.html#errorHandler(com.linecorp.armeria.server.ServerErrorHandler)
By the way, it seems good to directly inject ServerErrorHandler
via a bean.
Suggestion:
@Bean
public ServerErrorHandler serverErrorHandler() {
return myServerErrorHandler;
}
from armeria.
Created #5443 to support the ServerErrorHandler
bean.
Contribution is welcome if you are interested in sending a PR.
from armeria.
Related Issues (20)
- Test failure: `com.linecorp.armeria.xds.XdsClientIntegrationTest.multipleResources()`
- Abort with `RequestCancellationException` when WebSocket client receives an invalid response
- Define ktlint rules
- BlockingTaskExecutor Question
- BlockHound detection on the Kubernetes client module
- Test failure: `com.linecorp.armeria.client.kubernetes.ArmeriaHttpHttpLoggingInterceptorTest.Interceptor doesn't consume response bytes`
- Test failure: `com.linecorp.armeria.xds.AggregatingNodeTest.modifyVirtualHost()`
- Add documentation for `ManagementService` HOT 3
- Provide an easy way to create an `HttpService` from a Kotlin coroutine HOT 3
- Inject `ServerErrorHandler` as `@Bean` in Spring integration modules
- Support `RpcService` based `Decorator` and `DecoratorFactoryFunction` HOT 2
- WebClientRequestPreparation.asJson not reusing ObjectMapper when specified HOT 1
- Test failure: `com.linecorp.armeria.spring.web.reactive.ReactiveWebServerLoadBalancerInteropTest`
- Add homePageUrlPath, statusPageUrlPath to EurekaUpdatingListenerBuilder HOT 3
- Introduce Connection Drain Duration for ClientFactory Closure HOT 3
- Provide proxy service out of box HOT 2
- Method is not found `decoderEnforceMaxRstFramesPerWindow` HOT 1
- Buffer leak reported in THttpClientDelegate HOT 7
- Add builder for `Backoff` HOT 2
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.