1# HTTP request class.
2# This class wraps together the request header and the request path.
3# You cannot use this class directly. Instead, you should use one of its
4# subclasses: Net::HTTP::Get, Net::HTTP::Post, Net::HTTP::Head.
5#
6class Net::HTTPRequest < Net::HTTPGenericRequest
7  # Creates an HTTP request object for +path+.
8  #
9  # +initheader+ are the default headers to use.  Net::HTTP adds
10  # Accept-Encoding to enable compression of the response body unless
11  # Accept-Encoding or Range are supplied in +initheader+.
12
13  def initialize(path, initheader = nil)
14    super self.class::METHOD,
15          self.class::REQUEST_HAS_BODY,
16          self.class::RESPONSE_HAS_BODY,
17          path, initheader
18  end
19end
20
21