Class: Net::HTTP::Post

Inherits:
Object
  • Object
show all
Defined in:
lib/Net/HTTP/Post/set_headers.rb

Overview

Notes:

  1. Using the date from when first created in HTTP.get/post as the creation date.

Instance Method Summary collapse

Instance Method Details

#set_headers(headers = {}) ⇒ Object Also known as: headers=



12
13
14
# File 'lib/Net/HTTP/Post/set_headers.rb', line 12

def set_headers(headers = {})
  headers.each{|k,v| self[k] = v}
end