Method: Browser::HTTP::Request#query

Defined in:
opal/browser/http/request.rb

#query(hash = nil) ⇒ Hash

Set the URI query.

Parameters:

  • hash (Hash) (defaults to: nil)

    the query

Returns:



189
190
191
# File 'opal/browser/http/request.rb', line 189

def query(hash = nil)
  hash ? @query = hash : @query
end