Skip to content

Commit 0ce81e0

Browse files
committed
http_server: add an accessor to read request header
Signed-off-by: Shizuo Fujita <[email protected]>
1 parent 83c19d1 commit 0ce81e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/fluent/plugin_helper/http_server/request.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def initialize(request)
2929
@path, @query_string = path.split('?', 2)
3030
end
3131

32+
def headers
33+
@request.headers
34+
end
35+
3236
def query
3337
@query_string && CGI.parse(@query_string)
3438
end

0 commit comments

Comments
 (0)