Skip to content

Commit 0108bd9

Browse files
jbl428imdudu1
andcommitted
docs: update README.md
Co-authored-by: imdudu1 <[email protected]>
1 parent 8b357a6 commit 0108bd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ export class AppModule {
9292
- Example with key: `request(@RequestParam('foo') query: string): string`
9393
- Example without key: `request(@RequestParam() query: { foo: string }): string`
9494

95-
- `@RequestHeader(key?: string, defaultValue?: string)`: Specifies the request header, requiring the key of the header
96-
optionally.
95+
- `@RequestHeader(key?: string, option?: { defaultValue?: string; transform?: (value: string) => string })`: Specifies
96+
the request header, requiring the key of the header optionally.
9797

9898
- `@Bearer()`: Specifies the bearer token using the `Authorization` header.
9999

0 commit comments

Comments
 (0)