Class: WEBrick::HTTPRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/ritm/helpers/patches.rb

Overview

Other patches to WEBrick::HTTPRequest

Instance Method Summary collapse

Instance Method Details

#[]=(header_name, *values) ⇒ Object



19
20
21
# File 'lib/ritm/helpers/patches.rb', line 19

def []=(header_name, *values)
  @header[header_name.downcase] = values.map(&:to_s)
end

#body=(str) ⇒ Object



23
24
25
26
# File 'lib/ritm/helpers/patches.rb', line 23

def body=(str)
  body # Read current body
  @body = str
end

#request_uri=(uri) ⇒ Object



28
29
30
# File 'lib/ritm/helpers/patches.rb', line 28

def request_uri=(uri)
  @request_uri = parse_uri(uri.to_s)
end