summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs
diff options
context:
space:
mode:
authorBenjamin Sanders <ben@Benjamins-MacBook-Pro.local>2025-10-11 10:34:24 -0400
committerBenjamin Sanders <ben@Benjamins-MacBook-Pro.local>2025-10-11 10:34:24 -0400
commit5571dc766e2143e39762ff0b47c41d1c2e154f4c (patch)
treef4f124d314a7e76c04484515aa0fd1f2e271a601 /vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs
parent359f3309c97fc894b63e0a295c76ab298504d635 (diff)
Vendor bundled gems for deployment
Diffstat (limited to 'vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs')
-rw-r--r--vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs71
1 files changed, 71 insertions, 0 deletions
diff --git a/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs
new file mode 100644
index 0000000..6c966e9
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/webrick-1.9.1/sig/httpserver.rbs
@@ -0,0 +1,71 @@
+module WEBrick
+ class HTTPServerError < ServerError
+ end
+
+ class HTTPServer < ::WEBrick::GenericServer
+ @http_version: HTTPVersion
+
+ @mount_tab: MountTable
+
+ @virtual_hosts: Array[untyped]
+
+ def initialize: (?Hash[Symbol, untyped] config, ?Hash[Symbol, untyped] default) -> void
+
+ def run: (TCPSocket sock) -> void
+
+ def service: (HTTPRequest req, HTTPResponse res) -> void
+
+ def do_OPTIONS: (HTTPRequest req, HTTPResponse res) -> void
+
+ def mount: (String dir, singleton(HTTPServlet::AbstractServlet) servlet, *untyped options) -> void
+
+ def mount_proc: (String dir, ?HTTPServlet::ProcHandler::_Callable proc) -> void
+ | (String dir, ?nil proc) { (HTTPRequest, HTTPResponse) -> void } -> void
+
+ def unmount: (String dir) -> MountTable::value_type
+
+ alias umount unmount
+
+ def search_servlet: (String path) -> [singleton(HTTPServlet::AbstractServlet), Array[untyped], String, String]?
+
+ def virtual_host: (instance server) -> void
+
+ def lookup_server: (HTTPRequest req) -> instance?
+
+ def access_log: (Hash[Symbol, untyped] config, HTTPRequest req, HTTPResponse res) -> void
+
+ #
+ # Creates the HTTPRequest used when handling the HTTP
+ # request. Can be overridden by subclasses.
+ def create_request: (Hash[Symbol, untyped] with_webrick_config) -> HTTPRequest
+
+ #
+ # Creates the HTTPResponse used when handling the HTTP
+ # request. Can be overridden by subclasses.
+ def create_response: (Hash[Symbol, untyped] with_webrick_config) -> HTTPResponse
+
+ class MountTable
+ type value_type = [singleton(HTTPServlet::AbstractServlet), Array[untyped]]
+
+ @tab: Hash[String, value_type]
+
+ @scanner: Regexp
+
+ def initialize: () -> void
+
+ def []: (String dir) -> value_type
+
+ def []=: (String dir, value_type val) -> value_type
+
+ def delete: (String dir) -> value_type
+
+ def scan: (String path) -> [String, String]
+
+ private
+
+ def compile: () -> void
+
+ def normalize: (String dir) -> String
+ end
+ end
+end