File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ This library is inspired by the HTTP interface in Spring 6 and provides a simila
18
18
- Offers integration with [ class-transformer] ( https://github.com/typestack/class-transformer ) to facilitate data
19
19
transformation.
20
20
- Uses promises instead of observables
21
+ - Circuit breaker support
21
22
22
23
## Requirements
23
24
@@ -113,6 +114,9 @@ class UserService {
113
114
- ` @RequestForm(key?: string, defaultValue?: string) ` : Specifies the request form
114
115
using ` application/x-www-form-urlencoded ` as the content type, requiring the key of the body optionally.
115
116
117
+ - ` @CircuitBreaker(options?: CircuitBreaker.Options) ` : Marks the method as a circuit breaker, with ` options ` being the
118
+ options of the circuit breaker. You can use global options by setting the ` circuitBreakerOption ` property in the module.
119
+
116
120
## Auto generate ` @ResponseBody() ` from return type of exchange method
117
121
118
122
Because of limitation of ` reflect-metadata ` , ` @ResponseBody() ` is required to specify the response DTO.
You can’t perform that action at this time.
0 commit comments