Commit 2cb45d7
authored
http_server: add an accessor to read request header (#4903)
**Which issue(s) this PR fixes**:
Fixes #
**What this PR does / why we need it**:
I'm creating a plugin using http_server, but I need to change the
processing depending on the received request header.
So, I want an accessor to read request header in
`Fluent::PluginHelper::HttpServer::Request`
**Docs Changes**:
TODO:
https://docs.fluentd.org/plugin-helper-overview/api-plugin-helper-http_server#request
**Release Note**:
* `http_server` helper: add `header` method for `Request`.
---------
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>1 parent 83c19d1 commit 2cb45d7
File tree
2 files changed
+23
-0
lines changed- lib/fluent/plugin_helper/http_server
- test/plugin_helper/http_server
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments