This class contains the URI path and query parameters that is consumed by PredictionIO::Connection for asynchronous HTTP requests.
Query parameters, or form data.
The path portion of the request URI.
Populates the package with request URI path, and optionally query parameters or form data.
# File lib/predictionio/async_request.rb, line 14 def initialize(path, params = {}) @params = params @path = path end
Returns an URI path with query parameters encoded for HTTP GET requests.
# File lib/predictionio/async_request.rb, line 20 def qpath "#{@path}?#{URI::encode_www_form(@params)}" end