Class: WEBrick::HTTPRequest
- Inherits:
-
Object
- Object
- WEBrick::HTTPRequest
- Defined in:
- lib/ritm/helpers/patches.rb
Overview
Other patches to WEBrick::HTTPRequest
Instance Method Summary collapse
Instance Method Details
#[]=(header_name, *values) ⇒ Object
14 15 16 |
# File 'lib/ritm/helpers/patches.rb', line 14 def []=(header_name, *values) @header[header_name.downcase] = values.map(&:to_s) end |
#body=(str) ⇒ Object
18 19 20 21 |
# File 'lib/ritm/helpers/patches.rb', line 18 def body=(str) body # Read current body @body = str end |
#request_uri=(uri) ⇒ Object
23 24 25 |
# File 'lib/ritm/helpers/patches.rb', line 23 def request_uri=(uri) @request_uri = parse_uri(uri.to_s) end |