class Fluent::PluginHelper::HttpServer::Request
Attributes
path[R]
query_string[R]
Public Class Methods
new(request)
click to toggle source
# File lib/fluent/plugin_helper/http_server/request.rb, line 26 def initialize(request) @request = request path = request.path @path, @query_string = path.split('?', 2) end
Public Instance Methods
body()
click to toggle source
# File lib/fluent/plugin_helper/http_server/request.rb, line 36 def body @request.body && @request.body.read end
query()
click to toggle source
# File lib/fluent/plugin_helper/http_server/request.rb, line 32 def query @query_string && CGI.parse(@query_string) end