class WEBrick::HTTPRequest

Other patches to WEBrick::HTTPRequest

Constants

MAX_URI_LENGTH

Public Instance Methods

[]=(header_name, *values) click to toggle source
# File lib/ritm/helpers/patches.rb, line 19
def []=(header_name, *values)
  @header[header_name.downcase] = values.map(&:to_s)
end
body=(str) click to toggle source
# File lib/ritm/helpers/patches.rb, line 23
def body=(str)
  body # Read current body
  @body = str
end
request_uri=(uri) click to toggle source
# File lib/ritm/helpers/patches.rb, line 28
def request_uri=(uri)
  @request_uri = parse_uri(uri.to_s)
end