X7ROOT File Manager
Current Path:
/opt/alt/ruby26/lib64/ruby/2.6.0/net/http
opt
/
alt
/
ruby26
/
lib64
/
ruby
/
2.6.0
/
net
/
http
/
ðŸ“
..
📄
backward.rb
(609 B)
📄
exceptions.rb
(873 B)
📄
generic_request.rb
(9.5 KB)
📄
header.rb
(15.83 KB)
📄
proxy_delta.rb
(272 B)
📄
request.rb
(746 B)
📄
requests.rb
(2.91 KB)
📄
response.rb
(10.26 KB)
📄
responses.rb
(9.8 KB)
📄
status.rb
(2.21 KB)
Editing: request.rb
# frozen_string_literal: false # 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
Upload File
Create Folder