Class: Net::HTTP::Post
- Inherits:
-
Object
- Object
- Net::HTTP::Post
- Defined in:
- lib/Net/HTTP/Post/set_headers.rb
Overview
Notes:
-
Using the date from when first created in HTTP.get/post as the creation date.
Instance Method Summary collapse
- #set_headers(headers = {}) ⇒ Object (also: #headers=)
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 |