# This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems # typed: true # # If you would like to make changes to this file, great! Please create the gem's shim here: # # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rack/all/rack.rbi # # rack-2.2.3 module Rack def self.release; end def self.version; end end module Rack::Auth end module Rack::Auth::Digest end module Rack::Session end class Rack::QueryParser def initialize(params_class, key_space_limit, param_depth_limit); end def key_space_limit; end def make_params; end def new_depth_limit(param_depth_limit); end def new_space_limit(key_space_limit); end def normalize_params(params, name, v, depth); end def param_depth_limit; end def params_hash_has_key?(hash, key); end def params_hash_type?(obj); end def parse_nested_query(qs, d = nil); end def parse_query(qs, d = nil, &unescaper); end def self.make_default(key_space_limit, param_depth_limit); end def unescape(s); end end class Rack::QueryParser::ParameterTypeError < TypeError end class Rack::QueryParser::InvalidParameterError < ArgumentError end class Rack::QueryParser::Params def [](key); end def []=(key, value); end def initialize(limit); end def key?(key); end def to_h; end def to_params_hash; end end module Rack::Utils def add_cookie_to_header(header, key, value); end def add_remove_cookie_to_header(header, key, value = nil); end def best_q_match(q_value_header, available_mimes); end def build_nested_query(value, prefix = nil); end def build_query(params); end def byte_ranges(env, size); end def clean_path_info(path_info); end def clock_time; end def delete_cookie_header!(header, key, value = nil); end def escape(s); end def escape_html(string); end def escape_path(s); end def get_byte_ranges(http_range, size); end def make_delete_cookie_header(header, key, value); end def parse_cookies(env); end def parse_cookies_header(header); end def parse_nested_query(qs, d = nil); end def parse_query(qs, d = nil, &unescaper); end def q_values(q_value_header); end def rfc2109(time); end def rfc2822(time); end def secure_compare(a, b); end def select_best_encoding(available_encodings, accept_encoding); end def self.add_cookie_to_header(header, key, value); end def self.add_remove_cookie_to_header(header, key, value = nil); end def self.best_q_match(q_value_header, available_mimes); end def self.build_nested_query(value, prefix = nil); end def self.build_query(params); end def self.byte_ranges(env, size); end def self.clean_path_info(path_info); end def self.clock_time; end def self.default_query_parser; end def self.default_query_parser=(arg0); end def self.delete_cookie_header!(header, key, value = nil); end def self.escape(s); end def self.escape_html(string); end def self.escape_path(s); end def self.get_byte_ranges(http_range, size); end def self.key_space_limit; end def self.key_space_limit=(v); end def self.make_delete_cookie_header(header, key, value); end def self.multipart_part_limit; end def self.multipart_part_limit=(arg0); end def self.param_depth_limit; end def self.param_depth_limit=(v); end def self.parse_cookies(env); end def self.parse_cookies_header(header); end def self.parse_nested_query(qs, d = nil); end def self.parse_query(qs, d = nil, &unescaper); end def self.q_values(q_value_header); end def self.rfc2109(time); end def self.rfc2822(time); end def self.secure_compare(a, b); end def self.select_best_encoding(available_encodings, accept_encoding); end def self.set_cookie_header!(header, key, value); end def self.status_code(status); end def self.unescape(s, encoding = nil); end def self.unescape_path(s); end def self.valid_path?(path); end def set_cookie_header!(header, key, value); end def status_code(status); end def unescape(s, encoding = nil); end def unescape_path(s); end def valid_path?(path); end end class Rack::Utils::Context def app; end def call(env); end def context(env, app = nil); end def for; end def initialize(app_f, app_r); end def recontext(app); end end class Rack::Utils::HeaderHash < Hash def [](k); end def []=(k, v); end def clear; end def delete(k); end def each; end def has_key?(k); end def include?(k); end def initialize(hash = nil); end def initialize_copy(other); end def key?(k); end def member?(k); end def merge!(other); end def merge(other); end def names; end def replace(other); end def self.[](headers); end def to_hash; end end class Rack::Response def [](key); end def []=(key, v); end def body; end def body=(arg0); end def chunked?; end def close; end def delete_header(key); end def each(&callback); end def empty?; end def finish(&block); end def get_header(key); end def has_header?(key); end def header; end def headers; end def initialize(body = nil, status = nil, headers = nil); end def length; end def length=(arg0); end def redirect(target, status = nil); end def self.[](status, headers, body); end def set_header(key, v); end def status; end def status=(arg0); end def to_a(&block); end def write(chunk); end include Rack::Response::Helpers end module Rack::Response::Helpers def accepted?; end def add_header(key, v); end def append(chunk); end def bad_request?; end def buffered_body!; end def cache!(duration = nil, directive: nil); end def cache_control; end def cache_control=(v); end def client_error?; end def content_length; end def content_type; end def content_type=(content_type); end def created?; end def delete_cookie(key, value = nil); end def do_not_cache!; end def etag; end def etag=(v); end def forbidden?; end def include?(header); end def informational?; end def invalid?; end def location; end def location=(location); end def media_type; end def media_type_params; end def method_not_allowed?; end def moved_permanently?; end def no_content?; end def not_found?; end def ok?; end def precondition_failed?; end def redirect?; end def redirection?; end def server_error?; end def set_cookie(key, value); end def set_cookie_header; end def set_cookie_header=(v); end def successful?; end def unauthorized?; end def unprocessable?; end end class Rack::Response::Raw def delete_header(key); end def get_header(key); end def has_header?(key); end def headers; end def initialize(status, headers); end def set_header(key, v); end def status; end def status=(arg0); end include Rack::Response::Helpers end class Rack::Request def delete_param(k); end def initialize(env); end def params; end def self.ip_filter; end def self.ip_filter=(arg0); end def update_param(k, v); end include Rack::Request::Env include Rack::Request::Helpers end module Rack::Request::Env def add_header(key, v); end def delete_header(name); end def each_header(&block); end def env; end def fetch_header(name, &block); end def get_header(name); end def has_header?(name); end def initialize(env); end def initialize_copy(other); end def set_header(name, v); end end module Rack::Request::Helpers def GET; end def POST; end def [](key); end def []=(key, value); end def accept_encoding; end def accept_language; end def allowed_scheme(header); end def authority; end def base_url; end def body; end def content_charset; end def content_length; end def content_type; end def cookies; end def default_session; end def delete?; end def delete_param(k); end def extract_proto_header(header); end def form_data?; end def forwarded_authority; end def forwarded_for; end def forwarded_port; end def forwarded_scheme; end def fullpath; end def get?; end def head?; end def host; end def host_authority; end def host_with_port(authority = nil); end def hostname; end def ip; end def link?; end def logger; end def media_type; end def media_type_params; end def multithread?; end def options?; end def params; end def parse_http_accept_header(header); end def parse_multipart; end def parse_query(qs, d = nil); end def parseable_data?; end def patch?; end def path; end def path_info; end def path_info=(s); end def port; end def post?; end def put?; end def query_parser; end def query_string; end def referer; end def referrer; end def reject_trusted_ip_addresses(ip_addresses); end def request_method; end def scheme; end def script_name; end def script_name=(s); end def server_authority; end def server_name; end def server_port; end def session; end def session_options; end def split_authority(authority); end def split_header(value); end def ssl?; end def trace?; end def trusted_proxy?(ip); end def unlink?; end def update_param(k, v); end def url; end def user_agent; end def values_at(*keys); end def wrap_ipv6(host); end def xhr?; end end class Rack::Session::SessionId def cookie_value; end def empty?; end def hash_sid(sid); end def initialize(public_id); end def inspect; end def private_id; end def public_id; end def to_s; end end module Rack::Session::Abstract end class Rack::Session::Abstract::SessionHash def [](key); end def []=(key, value); end def clear; end def delete(key); end def destroy; end def dig(key, *keys); end def each(&block); end def empty?; end def exists?; end def fetch(key, default = nil, &block); end def has_key?(key); end def id; end def id=(arg0); end def include?(key); end def initialize(store, req); end def inspect; end def key?(key); end def keys; end def load!; end def load_for_read!; end def load_for_write!; end def loaded?; end def merge!(hash); end def options; end def replace(hash); end def self.find(req); end def self.set(req, session); end def self.set_options(req, options); end def store(key, value); end def stringify_keys(other); end def to_hash; end def update(hash); end def values; end include Enumerable end class Rack::Session::Abstract::Persisted def call(env); end def commit_session(req, res); end def commit_session?(req, session, options); end def context(env, app = nil); end def cookie_value(data); end def current_session_id(req); end def default_options; end def delete_session(req, sid, options); end def extract_session_id(request); end def find_session(env, sid); end def force_options?(options); end def forced_session_update?(session, options); end def generate_sid(secure = nil); end def initialize(app, options = nil); end def initialize_sid; end def key; end def load_session(req); end def loaded_session?(session); end def make_request(env); end def prepare_session(req); end def security_matches?(request, options); end def session_class; end def session_exists?(req); end def set_cookie(request, res, cookie); end def sid_secure; end def write_session(req, sid, session, options); end end class Rack::Session::Abstract::PersistedSecure < Rack::Session::Abstract::Persisted def cookie_value(data); end def extract_session_id(*arg0); end def generate_sid(*arg0); end def session_class; end end class Rack::Session::Abstract::PersistedSecure::SecureSessionHash < Rack::Session::Abstract::SessionHash def [](key); end end class Rack::Session::Abstract::ID < Rack::Session::Abstract::Persisted def delete_session(req, sid, options); end def find_session(req, sid); end def self.inherited(klass); end def write_session(req, sid, session, options); end end class Rack::Chunked def call(env); end def chunkable_version?(ver); end def initialize(app); end include Rack::Utils end class Rack::Chunked::Body def close; end def each(&block); end def initialize(body); end def yield_trailers; end end class Rack::Chunked::TrailerBody < Rack::Chunked::Body def yield_trailers; end end class Rack::Runtime def call(env); end def initialize(app, name = nil); end end class Rack::BodyProxy def close; end def closed?; end def initialize(body, &block); end def method_missing(method_name, *args, &block); end def respond_to_missing?(method_name, include_all = nil); end end class Rack::Sendfile def call(env); end def initialize(app, variation = nil, mappings = nil); end def map_accel_path(env, path); end def variation(env); end end class Rack::Head def call(env); end def initialize(app); end end class Rack::ConditionalGet def call(env); end def etag_matches?(none_match, headers); end def fresh?(env, headers); end def initialize(app); end def modified_since?(modified_since, headers); end def to_rfc2822(since); end end class Rack::ETag def call(env); end def digest_body(body); end def etag_body?(body); end def etag_status?(status); end def initialize(app, no_cache_control = nil, cache_control = nil); end def skip_caching?(headers); end end class Rack::Files def call(env); end def fail(status, body, headers = nil); end def filesize(path); end def get(env); end def initialize(root, headers = nil, default_mime = nil); end def mime_type(path, default_mime); end def root; end def self.method_added(name); end def serving(request, path); end end class Rack::Files::BaseIterator def bytesize; end def close; end def each; end def each_range_part(file, range); end def initialize(path, ranges, options); end def multipart?; end def multipart_heading(range); end def options; end def path; end def ranges; end end class Rack::Files::Iterator < Rack::Files::BaseIterator def to_path; end end class Rack::MockRequest def delete(uri, opts = nil); end def get(uri, opts = nil); end def head(uri, opts = nil); end def initialize(app); end def options(uri, opts = nil); end def patch(uri, opts = nil); end def post(uri, opts = nil); end def put(uri, opts = nil); end def request(method = nil, uri = nil, opts = nil); end def self.env_for(uri = nil, opts = nil); end def self.parse_uri_rfc2396(uri); end end class Rack::MockRequest::FatalWarning < RuntimeError end class Rack::MockRequest::FatalWarner def flush; end def puts(warning); end def string; end def write(warning); end end class Rack::MockResponse < Rack::Response def =~(other); end def body; end def cookie(name); end def cookies; end def empty?; end def errors; end def errors=(arg0); end def identify_cookie_attributes(cookie_filling); end def initialize(status, headers, body, errors = nil); end def match(other); end def original_headers; end def parse_cookies_from_header; end def self.[](*arg0); end end