Class: Async::HTTP::Request
- Inherits:
-
Struct
- Object
- Struct
- Async::HTTP::Request
- Includes:
- Body::Buffered::Reader
- Defined in:
- lib/async/http/request.rb
Instance Attribute Summary collapse
-
#authority ⇒ Object
Returns the value of attribute authority.
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#method ⇒ Object
Returns the value of attribute method.
-
#path ⇒ Object
Returns the value of attribute path.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Body::Buffered::Reader
Instance Attribute Details
#authority ⇒ Object
Returns the value of attribute authority
25 26 27 |
# File 'lib/async/http/request.rb', line 25 def @authority end |
#body ⇒ Object
Returns the value of attribute body
25 26 27 |
# File 'lib/async/http/request.rb', line 25 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
25 26 27 |
# File 'lib/async/http/request.rb', line 25 def headers @headers end |
#method ⇒ Object
Returns the value of attribute method
25 26 27 |
# File 'lib/async/http/request.rb', line 25 def method @method end |
#path ⇒ Object
Returns the value of attribute path
25 26 27 |
# File 'lib/async/http/request.rb', line 25 def path @path end |
#version ⇒ Object
Returns the value of attribute version
25 26 27 |
# File 'lib/async/http/request.rb', line 25 def version @version end |
Class Method Details
Instance Method Details
#idempotent? ⇒ Boolean
34 35 36 |
# File 'lib/async/http/request.rb', line 34 def idempotent? method != 'POST' && (body.nil? || body.empty?) end |