new

new(path, initheader = nil)
Class Public methods

Creates an HTTP request object for path.

initheader are the default headers to use. Net::HTTP adds Accept-Encoding to enable compression of the response body unless Accept-Encoding or Range are supplied in initheader.

doc_ruby_on_rails
2015-04-21 12:38:52
Comments
Leave a Comment

Please login to continue.