post(path, data, initheader = nil, dest = nil)
Instance Public methods
Posts data (must be a String) to path.
header must be a Hash like {
'Accept' => '/', ⦠}.
This method returns a Net::HTTPResponse
object.
If called with a block, yields each fragment of the entity body in turn as
a string as it is read from the socket. Note that in this case, the
returned response object will not contain a (meaningful)
body.
dest argument is obsolete. It still works but you must not use
it.