Add bin and edit workflow
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s

This commit is contained in:
2026-09-16 13:11:16 -06:00
parent c8ac4fcae5
commit 4cee170d66
17576 changed files with 895740 additions and 2 deletions
@@ -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
@@ -0,0 +1,3 @@
class Object
def sysread: (IO io, Integer size) -> String
end
@@ -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
@@ -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
@@ -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
@@ -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