Skip to content

Commit 16024b8

Browse files
committed
docs: update README.md
1 parent 308f6c6 commit 16024b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This library is inspired by the HTTP interface in Spring 6 and provides a simila
1717
- Provides a concise syntax for handling query parameters, path variables, request headers, request bodies, and forms.
1818
- Offers integration with [class-transformer](https://github.com/typestack/class-transformer) to facilitate data
1919
transformation.
20-
- Uses promises instead of observables
20+
- Support both promise and observable.
2121
- Circuit breaker support
2222

2323
## Requirements
@@ -118,6 +118,9 @@ class UserService {
118118
options of the circuit breaker. You can use global options by setting the `circuitBreakerOption` property in the module.
119119
`options` is from [opossum](https://www.npmjs.com/package/opossum) library.
120120

121+
- `@Observable()`: Marks the method as an observable method. If this decorator is not specified, the method will return
122+
a promise.
123+
121124
## Auto generate `@ResponseBody()` from return type of exchange method
122125

123126
Because of limitation of `reflect-metadata`, `@ResponseBody()` is required to specify the response DTO.

0 commit comments

Comments
 (0)