summaryrefslogtreecommitdiff
path: root/lib/webrick/https.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/https.rb')
-rw-r--r--lib/webrick/https.rb25
1 files changed, 24 insertions, 1 deletions
diff --git a/lib/webrick/https.rb b/lib/webrick/https.rb
index abb428451f..73875d7326 100644
--- a/lib/webrick/https.rb
+++ b/lib/webrick/https.rb
@@ -1,3 +1,4 @@
+# frozen_string_literal: false
#
# https.rb -- SSL/TLS enhancement for HTTPServer
#
@@ -15,8 +16,28 @@ module WEBrick
HTTP.update(SSL)
end
+ ##
+ #--
+ # Adds SSL functionality to WEBrick::HTTPRequest
+
class HTTPRequest
- attr_reader :cipher, :server_cert, :client_cert
+
+ ##
+ # 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
@@ -60,5 +81,7 @@ module WEBrick
end
meta
end
+
+ # :startdoc:
end
end