PHP 8.2.31
Preview: request.rb Size: 715 B
//proc/thread-self/root/opt/alt/ruby20/lib64/ruby/2.0.0/net/http/request.rb

# HTTP request class.
# This class wraps together the request header and the request path.
# You cannot use this class directly. Instead, you should use one of its
# subclasses: Net::HTTP::Get, Net::HTTP::Post, Net::HTTP::Head.
#
class Net::HTTPRequest < Net::HTTPGenericRequest
  # 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+.

  def initialize(path, initheader = nil)
    super self.class::METHOD,
          self.class::REQUEST_HAS_BODY,
          self.class::RESPONSE_HAS_BODY,
          path, initheader
  end
end

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
578 B lrw-r--r-- 2012-08-23 22:42:12
Edit Download
710 B lrw-r--r-- 2012-05-22 20:36:21
Edit Download
9.04 KB lrw-r--r-- 2013-02-14 15:51:45
Edit Download
14.36 KB lrw-r--r-- 2012-05-23 13:09:26
Edit Download
241 B lrw-r--r-- 2012-05-22 20:36:21
Edit Download
715 B lrw-r--r-- 2012-07-19 22:43:38
Edit Download
2.88 KB lrw-r--r-- 2012-05-22 20:36:21
Edit Download
9.78 KB lrw-r--r-- 2015-01-14 07:32:00
Edit Download
8.42 KB lrw-r--r-- 2012-07-05 03:31:31
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).