Module: Ferrum::Network::RequestParams
- Included in:
- InterceptedRequest, Request
- Defined in:
- lib/ferrum/network/request_params.rb
Overview
Common methods used by both Request and InterceptedRequest.
Instance Method Summary collapse
-
#headers ⇒ Hash{String => String}
The request headers.
-
#method ⇒ String
The request method.
-
#post_data ⇒ String?
(also: #body)
The optional HTTP ‘POST` form data.
-
#url ⇒ String
The URL for the request.
-
#url_fragment ⇒ String?
The URL fragment for the request.
Instance Method Details
#headers ⇒ Hash{String => String}
The request headers.
41 42 43 |
# File 'lib/ferrum/network/request_params.rb', line 41 def headers @request["headers"] end |
#method ⇒ String
The request method.
32 33 34 |
# File 'lib/ferrum/network/request_params.rb', line 32 def method @request["method"] end |
#post_data ⇒ String? Also known as: body
The optional HTTP ‘POST` form data.
51 52 53 |
# File 'lib/ferrum/network/request_params.rb', line 51 def post_data @request["postData"] end |
#url ⇒ String
The URL for the request.
14 15 16 |
# File 'lib/ferrum/network/request_params.rb', line 14 def url @request["url"] end |
#url_fragment ⇒ String?
The URL fragment for the request.
23 24 25 |
# File 'lib/ferrum/network/request_params.rb', line 23 def url_fragment @request["urlFragment"] end |