summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet
diff options
context:
space:
mode:
authorBen Sanders <ben@sanders.life>2026-08-02 09:49:25 -0400
committerBen Sanders <ben@sanders.life>2026-08-02 09:49:25 -0400
commitb41479c91e6685511c1f8ba8586106b322073b62 (patch)
treec9f1345999d754ae0a533849966427e792d9e68d /vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet
parentcfaceeb9a6d1295f5754be211858155cd309acc2 (diff)
added statscounter code
Diffstat (limited to 'vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet')
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/abstract.rbs36
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgi_runner.rbs3
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgihandler.rbs23
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/erbhandler.rbs17
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/filehandler.rbs76
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/prochandler.rbs21
6 files changed, 176 insertions, 0 deletions
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/abstract.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/abstract.rbs
new file mode 100644
index 0000000..b067deb
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/abstract.rbs
@@ -0,0 +1,36 @@
+module WEBrick
+ module HTTPServlet
+ class HTTPServletError < StandardError
+ end
+
+ class AbstractServlet
+ @server: HTTPServer
+
+ interface _Config
+ def []: (Symbol) -> untyped
+ end
+
+ @config: _Config
+
+ @logger: Log
+
+ @options: untyped # Array[untyped] causes RBS::InstanceVariableTypeError
+
+ def self.get_instance: (HTTPServer server, *untyped options) -> instance
+
+ def initialize: (HTTPServer server, *untyped options) -> void
+
+ def service: (HTTPRequest req, HTTPResponse res) -> void
+
+ def do_GET: (HTTPRequest req, HTTPResponse res) -> bot
+
+ def do_HEAD: (HTTPRequest req, HTTPResponse res) -> bot
+
+ def do_OPTIONS: (HTTPRequest req, HTTPResponse res) -> void
+
+ private
+
+ def redirect_to_directory_uri: (HTTPRequest req, HTTPResponse res) -> void
+ end
+ end
+end
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgi_runner.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgi_runner.rbs
new file mode 100644
index 0000000..3112976
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgi_runner.rbs
@@ -0,0 +1,3 @@
+class Object
+ def sysread: (IO io, Integer size) -> String
+end
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgihandler.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgihandler.rbs
new file mode 100644
index 0000000..f56427c
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/cgihandler.rbs
@@ -0,0 +1,23 @@
+module WEBrick
+ module HTTPServlet
+ class CGIHandler < AbstractServlet
+ @script_filename: String
+
+ @tempdir: String?
+
+ @cgicmd: Array[String] | String
+
+ Ruby: String
+
+ CGIRunner: String
+
+ CGIRunnerArray: [String, String]
+
+ def initialize: (HTTPServer server, String name) -> void
+
+ def do_GET: (HTTPRequest req, HTTPResponse res) -> void
+
+ alias do_POST do_GET
+ end
+ end
+end
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/erbhandler.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/erbhandler.rbs
new file mode 100644
index 0000000..9ffa569
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/erbhandler.rbs
@@ -0,0 +1,17 @@
+module WEBrick
+ module HTTPServlet
+ class ERBHandler < AbstractServlet
+ @script_filename: String
+
+ def initialize: (HTTPServer server, String name) -> void
+
+ def do_GET: (HTTPRequest req, HTTPResponse res) -> void
+
+ alias do_POST do_GET
+
+ private
+
+ def evaluate: (ERB erb, HTTPRequest servlet_request, HTTPResponse servlet_response) -> String
+ end
+ end
+end
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/filehandler.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/filehandler.rbs
new file mode 100644
index 0000000..792fd2a
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/filehandler.rbs
@@ -0,0 +1,76 @@
+module WEBrick
+ module HTTPServlet
+ class DefaultFileHandler < AbstractServlet
+ @local_path: String
+
+ def initialize: (HTTPServer server, String local_path) -> void
+
+ def do_GET: (HTTPRequest req, HTTPResponse res) -> void
+
+ def not_modified?: (HTTPRequest req, HTTPResponse res, Time mtime, String etag) -> bool
+
+ # returns a lambda for webrick/httpresponse.rb send_body_proc
+ def multipart_body: (File body, Array[[Numeric, Numeric]] parts, String boundary, String mtype, Integer filesize) -> HTTPResponse::_CallableBody
+
+ def make_partial_content: (HTTPRequest req, HTTPResponse res, String filename, Integer filesize) -> void
+
+ def prepare_range: (Range[Integer] range, Integer filesize) -> [Numeric, Numeric]
+ end
+
+ class FileHandler < AbstractServlet
+ @config: AbstractServlet::_Config
+
+ @logger: Log
+
+ @root: String
+
+ @options: Hash[Symbol, untyped]
+
+ HandlerTable: Hash[String, singleton(AbstractServlet)]
+
+ def self.add_handler: (String suffix, singleton(AbstractServlet) handler) -> singleton(AbstractServlet)
+
+ def self.remove_handler: (String suffix) -> singleton(AbstractServlet)
+
+ def initialize: (HTTPServer server, String root, ?Hash[Symbol, untyped] options, ?Hash[Symbol, untyped] default) -> void
+
+ def set_filesystem_encoding: (String str) -> String
+
+ def service: (HTTPRequest req, HTTPResponse res) -> void
+
+ def do_GET: (HTTPRequest req, HTTPResponse res) -> void
+
+ def do_POST: (HTTPRequest req, HTTPResponse res) -> void
+
+ def do_OPTIONS: (HTTPRequest req, HTTPResponse res) -> void
+
+ private
+
+ def trailing_pathsep?: (String path) -> bool
+
+ def prevent_directory_traversal: (HTTPRequest req, HTTPResponse res) -> void
+
+ def exec_handler: (HTTPRequest req, HTTPResponse res) -> bool
+
+ def get_handler: (HTTPRequest req, HTTPResponse res) -> singleton(AbstractServlet)
+
+ def set_filename: (HTTPRequest req, HTTPResponse res) -> bool
+
+ def check_filename: (HTTPRequest req, HTTPResponse res, String name) -> void
+
+ def shift_path_info: (HTTPRequest req, HTTPResponse res, String path_info, ?String? base) -> void
+
+ def search_index_file: (HTTPRequest req, HTTPResponse res) -> String?
+
+ def search_file: (HTTPRequest req, HTTPResponse res, String basename) -> String?
+
+ def call_callback: (Symbol callback_name, HTTPRequest req, HTTPResponse res) -> void
+
+ def windows_ambiguous_name?: (String name) -> bool
+
+ def nondisclosure_name?: (String name) -> bool
+
+ def set_dir_list: (HTTPRequest req, HTTPResponse res) -> void
+ end
+ end
+end
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/prochandler.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/prochandler.rbs
new file mode 100644
index 0000000..66f6929
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.2/sig/httpservlet/prochandler.rbs
@@ -0,0 +1,21 @@
+module WEBrick
+ module HTTPServlet
+ class ProcHandler < AbstractServlet
+ interface _Callable
+ def call: (WEBrick::HTTPRequest, WEBrick::HTTPResponse) -> void
+ end
+
+ @proc: _Callable
+
+ def get_instance: (HTTPServer server, *untyped options) -> self
+
+ def initialize: (_Callable proc) -> void
+
+ def do_GET: (HTTPRequest request, HTTPResponse response) -> void
+
+ alias do_POST do_GET
+
+ alias do_PUT do_GET
+ end
+ end
+end