Class: Roar::Transport::NetHTTP
- Inherits:
-
Object
- Object
- Roar::Transport::NetHTTP
- Defined in:
- lib/roar/transport/net_http.rb,
lib/roar/transport/net_http/request.rb
Overview
Low-level interface for HTTP. The #get_uri and friends accept an options and an optional block, invoke the HTTP request and return the request object.
The following options are available:
Defined Under Namespace
Classes: Request
Instance Method Summary collapse
- #delete_uri(*options, &block) ⇒ Object
- #get_uri(*options, &block) ⇒ Object
- #patch_uri(*options, &block) ⇒ Object
- #post_uri(*options, &block) ⇒ Object
- #put_uri(*options, &block) ⇒ Object
Instance Method Details
#delete_uri(*options, &block) ⇒ Object
24 25 26 |
# File 'lib/roar/transport/net_http.rb', line 24 def delete_uri(*, &block) call(Net::HTTP::Delete, *, &block) end |
#get_uri(*options, &block) ⇒ Object
12 13 14 |
# File 'lib/roar/transport/net_http.rb', line 12 def get_uri(*, &block) call(Net::HTTP::Get, *, &block) end |
#patch_uri(*options, &block) ⇒ Object
28 29 30 |
# File 'lib/roar/transport/net_http.rb', line 28 def patch_uri(*, &block) call(Net::HTTP::Patch, *, &block) end |
#post_uri(*options, &block) ⇒ Object
16 17 18 |
# File 'lib/roar/transport/net_http.rb', line 16 def post_uri(*, &block) call(Net::HTTP::Post, *, &block) end |
#put_uri(*options, &block) ⇒ Object
20 21 22 |
# File 'lib/roar/transport/net_http.rb', line 20 def put_uri(*, &block) call(Net::HTTP::Put, *, &block) end |