Class: Whoosh::HTTP::AsyncClient

Inherits:
Object
  • Object
show all
Defined in:
lib/whoosh/http.rb

Instance Method Summary collapse

Instance Method Details

#delete(url, **opts) ⇒ Object



94
# File 'lib/whoosh/http.rb', line 94

def delete(url, **opts) = Thread.new { HTTP.delete(url, **opts) }

#get(url, **opts) ⇒ Object



90
# File 'lib/whoosh/http.rb', line 90

def get(url, **opts) = Thread.new { HTTP.get(url, **opts) }

#patch(url, **opts) ⇒ Object



93
# File 'lib/whoosh/http.rb', line 93

def patch(url, **opts) = Thread.new { HTTP.patch(url, **opts) }

#post(url, **opts) ⇒ Object



91
# File 'lib/whoosh/http.rb', line 91

def post(url, **opts) = Thread.new { HTTP.post(url, **opts) }

#put(url, **opts) ⇒ Object



92
# File 'lib/whoosh/http.rb', line 92

def put(url, **opts) = Thread.new { HTTP.put(url, **opts) }