X7ROOT File Manager
Current Path:
/opt/alt/ruby20/lib64/ruby/2.0.0/webrick
opt
/
alt
/
ruby20
/
lib64
/
ruby
/
2.0.0
/
webrick
/
ðŸ“
..
📄
accesslog.rb
(4.31 KB)
📄
cgi.rb
(7.97 KB)
📄
compat.rb
(912 B)
📄
config.rb
(5.56 KB)
📄
cookie.rb
(3.88 KB)
📄
htmlutils.rb
(680 B)
ðŸ“
httpauth
📄
httpauth.rb
(3.33 KB)
📄
httpproxy.rb
(9.65 KB)
📄
httprequest.rb
(14.33 KB)
📄
httpresponse.rb
(10.56 KB)
📄
https.rb
(1.87 KB)
📄
httpserver.rb
(7.69 KB)
ðŸ“
httpservlet
📄
httpservlet.rb
(669 B)
📄
httpstatus.rb
(5.26 KB)
📄
httputils.rb
(12.71 KB)
📄
httpversion.rb
(1.57 KB)
📄
log.rb
(3.92 KB)
📄
server.rb
(8.42 KB)
📄
ssl.rb
(6.67 KB)
📄
utils.rb
(6.44 KB)
📄
version.rb
(384 B)
Editing: https.rb
# # https.rb -- SSL/TLS enhancement for HTTPServer # # Author: IPR -- Internet Programming with Ruby -- writers # Copyright (c) 2001 GOTOU Yuuzou # Copyright (c) 2002 Internet Programming with Ruby writers. All rights # reserved. # # $IPR: https.rb,v 1.15 2003/07/22 19:20:42 gotoyuzo Exp $ require 'webrick/ssl' module WEBrick module Config HTTP.update(SSL) end ## #-- # Adds SSL functionality to WEBrick::HTTPRequest class HTTPRequest ## # HTTP request SSL cipher attr_reader :cipher ## # HTTP request server certificate attr_reader :server_cert ## # HTTP request client certificate attr_reader :client_cert # :stopdoc: alias orig_parse parse def parse(socket=nil) if socket.respond_to?(:cert) @server_cert = socket.cert || @config[:SSLCertificate] @client_cert = socket.peer_cert @client_cert_chain = socket.peer_cert_chain @cipher = socket.cipher end orig_parse(socket) end alias orig_parse_uri parse_uri def parse_uri(str, scheme="https") if server_cert return orig_parse_uri(str, scheme) end return orig_parse_uri(str) end private :parse_uri alias orig_meta_vars meta_vars def meta_vars meta = orig_meta_vars if server_cert meta["HTTPS"] = "on" meta["SSL_SERVER_CERT"] = @server_cert.to_pem meta["SSL_CLIENT_CERT"] = @client_cert ? @client_cert.to_pem : "" if @client_cert_chain @client_cert_chain.each_with_index{|cert, i| meta["SSL_CLIENT_CERT_CHAIN_#{i}"] = cert.to_pem } end meta["SSL_CIPHER"] = @cipher[0] meta["SSL_PROTOCOL"] = @cipher[1] meta["SSL_CIPHER_USEKEYSIZE"] = @cipher[2].to_s meta["SSL_CIPHER_ALGKEYSIZE"] = @cipher[3].to_s end meta end # :startdoc: end end
Upload File
Create Folder