Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KeepOriginalHeaders] update document #2656

Merged
merged 4 commits into from
Feb 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions karate-netty/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ If you have a custom certificate and private-key (in PEM format) you can specify
java -jar karate.jar -m my-mock.feature -p 8443 -s -c my-cert.crt -k my-key.key
```

#### Keep Original Headers
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct place to put please verify 🤔

By default, Karate mock server converts all response headers to lowercase according to HTTP/2 standard. By adding the `--keep-original-headers` option it allows you to retain the original header format, enabling integration with legacy systems or HTTP/1.

```
java -jar karate.jar -m my-mock.feature -p 8080 --keep-original-headers
```

#### Hot Reload
You can hot-reload a mock feature file for changes by adding the -W or --watch option.

Expand Down