# This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi sorbet-typed # # If you would like to make changes to this file, great! Please upstream any changes you make here: # # https://github.com/sorbet/sorbet-typed/edit/master/lib/faraday/all/faraday.rbi # # typed: ignore module Faraday def self.default_adapter; end def self.default_adapter=(adapter); end def self.default_connection; end def self.default_connection=(arg0); end def self.default_connection_options; end def self.default_connection_options=(options); end def self.ignore_env_proxy; end def self.ignore_env_proxy=(arg0); end def self.lib_path; end def self.lib_path=(arg0); end def self.method_missing(name, *args, &block); end def self.new(url = nil, options = nil, &block); end def self.require_lib(*libs); end def self.require_libs(*libs); end def self.respond_to_missing?(symbol, include_private = nil); end def self.root_path; end def self.root_path=(arg0); end # HTTP verb methods. These are proxied to Faraday::Connecation, # which should have corresponding sigs # Query methods sig do params( url: String, params: T.nilable(T::Hash[Object, Object]), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.get(url, params = nil, headers = nil, &block); end sig do params( url: String, params: T.nilable(T::Hash[Object, Object]), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.head(url, params = nil, headers = nil, &block); end sig do params( url: String, params: T.nilable(T::Hash[Object, Object]), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.delete(url, params = nil, headers = nil, &block); end sig do params( url: String, params: T.nilable(T::Hash[Object, Object]), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.trace(url, params = nil, headers = nil, &block); end # Body methods sig do params( url: String, body: T.any(String, T.nilable(T::Hash[Object, Object])), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.post(url, body = nil, headers = nil, &block); end sig do params( url: String, body: T.any(String, T.nilable(T::Hash[Object, Object])), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.put(url, body = nil, headers = nil, &block); end sig do params( url: String, body: T.any(String, T.nilable(T::Hash[Object, Object])), headers: T.nilable(T::Hash[Object, String]), block: T.nilable(T.proc.params(req: Faraday::Request).void), ).returns(Faraday::Response) end def self.patch(url, body = nil, headers = nil, &block); end end module Faraday::MiddlewareRegistry def fetch_middleware(key); end def load_middleware(key); end def lookup_middleware(key); end def middleware_mutex(&block); end def register_middleware(autoload_path = nil, mapping = nil); end def unregister_middleware(key); end end module Faraday::DependencyLoader def dependency(lib = nil); end def inherited(subclass); end def load_error; end def load_error=(arg0); end def loaded?; end def new(*arg0); end end module Faraday::Utils def URI(url); end def build_nested_query(params); end def build_query(params); end def deep_merge!(target, hash); end def deep_merge(source, hash); end def default_params_encoder; end def default_space_encoding; end def default_uri_parser; end def default_uri_parser=(parser); end def escape(str); end def normalize_path(url); end def parse_nested_query(query); end def parse_query(query); end def self.URI(url); end def self.build_nested_query(params); end def self.build_query(params); end def self.deep_merge!(target, hash); end def self.deep_merge(source, hash); end def self.default_params_encoder; end def self.default_params_encoder=(arg0); end def self.default_space_encoding; end def self.default_space_encoding=(arg0); end def self.default_uri_parser; end def self.default_uri_parser=(parser); end def self.escape(str); end def self.normalize_path(url); end def self.parse_nested_query(query); end def self.parse_query(query); end def self.sort_query_params(query); end def self.unescape(str); end def sort_query_params(query); end def unescape(str); end end class Faraday::Utils::Headers < Hash def [](key); end def []=(key, val); end def add_parsed(key, value); end def delete(key); end def fetch(key, *args, &block); end def has_key?(key); end def include?(key); end def initialize(hash = nil); end def initialize_copy(other); end def initialize_names; end def key?(key); end def member?(key); end def merge!(other); end def merge(other); end def names; end def parse(header_string); end def replace(other); end def self.allocate; end def self.from(value); end def to_hash; end def update(other); end end class Faraday::Utils::ParamsHash < Hash def [](key); end def []=(key, value); end def convert_key(key); end def delete(key); end def has_key?(key); end def include?(key); end def key?(key); end def member?(key); end def merge!(params); end def merge(params); end def merge_query(query, encoder = nil); end def replace(other); end def to_query(encoder = nil); end def update(params); end end class Anonymous_Faraday_Options_52 < Faraday::Options def bind; end def bind=(_); end def boundary; end def boundary=(_); end def context; end def context=(_); end def oauth; end def oauth=(_); end def on_data; end def on_data=(_); end def open_timeout; end def open_timeout=(_); end def params_encoder; end def params_encoder=(_); end def proxy; end def proxy=(_); end def read_timeout; end def read_timeout=(_); end def self.[](*arg0); end def self.inspect; end def self.members; end def self.new(*arg0); end def timeout; end def timeout=(_); end def write_timeout; end def write_timeout=(_); end end class Faraday::RequestOptions < Anonymous_Faraday_Options_52 def []=(key, value); end def stream_response?; end end class Anonymous_Faraday_Options_53 < Faraday::Options def ca_file; end def ca_file=(_); end def ca_path; end def ca_path=(_); end def cert_store; end def cert_store=(_); end def certificate; end def certificate=(_); end def client_cert; end def client_cert=(_); end def client_key; end def client_key=(_); end def max_version; end def max_version=(_); end def min_version; end def min_version=(_); end def private_key; end def private_key=(_); end def self.[](*arg0); end def self.inspect; end def self.members; end def self.new(*arg0); end def verify; end def verify=(_); end def verify_depth; end def verify_depth=(_); end def verify_mode; end def verify_mode=(_); end def version; end def version=(_); end end class Faraday::SSLOptions < Anonymous_Faraday_Options_53 def disable?; end def verify?; end end class Anonymous_Faraday_Options_54 < Faraday::Options def password; end def password=(_); end def self.[](*arg0); end def self.inspect; end def self.members; end def self.new(*arg0); end def uri; end def uri=(_); end def user; end def user=(_); end end class Faraday::ProxyOptions < Anonymous_Faraday_Options_54 def host(*args, &block); end def host=(*args, &block); end def password; end def path(*args, &block); end def path=(*args, &block); end def port(*args, &block); end def port=(*args, &block); end def scheme(*args, &block); end def scheme=(*args, &block); end def self.from(value); end def user; end extend Forwardable end class Anonymous_Faraday_Options_55 < Faraday::Options def builder; end def builder=(_); end def builder_class; end def builder_class=(_); end def headers; end def headers=(_); end def parallel_manager; end def parallel_manager=(_); end def params; end def params=(_); end def proxy; end def proxy=(_); end def request; end def request=(_); end def self.[](*arg0); end def self.inspect; end def self.members; end def self.new(*arg0); end def ssl; end def ssl=(_); end def url; end def url=(_); end end class Faraday::ConnectionOptions < Anonymous_Faraday_Options_55 def builder_class; end def new_builder(block); end def request; end def ssl; end end class Anonymous_Faraday_Options_56 < Faraday::Options def method; end def method=(_); end def parallel_manager; end def parallel_manager=(_); end def params; end def params=(_); end def reason_phrase; end def reason_phrase=(_); end def request; end def request=(_); end def request_body; end def request_body=(_); end def request_headers; end def request_headers=(_); end def response; end def response=(_); end def response_body; end def response_body=(_); end def response_headers; end def response_headers=(_); end def self.[](*arg0); end def self.inspect; end def self.members; end def self.new(*arg0); end def ssl; end def ssl=(_); end def status; end def status=(_); end def url; end def url=(_); end end class Faraday::Env < Anonymous_Faraday_Options_56 def [](key); end def []=(key, value); end def body; end def body=(value); end def clear_body; end def current_body; end def custom_members; end def in_member_set?(key); end def inspect; end def needs_body?; end def parallel?; end def params_encoder(*args, &block); end def parse_body?; end def self.from(value); end def self.member_set; end def success?; end extend Forwardable end class Faraday::Options < Struct def [](key); end def clear; end def deep_dup; end def delete(key); end def each; end def each_key; end def each_value; end def empty?; end def fetch(key, *args); end def has_key?(key); end def has_value?(value); end def inspect; end def key?(key); end def keys; end def merge!(other); end def merge(other); end def self.attribute_options; end def self.fetch_error_class; end def self.from(value); end def self.inherited(subclass); end def self.memoized(key, &block); end def self.memoized_attributes; end def self.options(mapping); end def self.options_for(key); end def symbolized_key_set; end def to_hash; end def update(obj); end def value?(value); end def values_at(*keys); end end class Faraday::Connection def adapter(*args, &block); end def app(*args, &block); end def authorization(type, token); end def basic_auth(login, pass); end def build(*args, &block); end def build_exclusive_url(url = nil, params = nil, params_encoder = nil); end def build_request(method); end def build_url(url = nil, extra_params = nil); end def builder; end def close; end def default_parallel_manager; end def default_parallel_manager=(arg0); end def delete(url = nil, params = nil, headers = nil); end def dup; end def find_default_proxy; end def get(url = nil, params = nil, headers = nil); end def head(url = nil, params = nil, headers = nil); end def headers; end def headers=(hash); end def host(*args, &block); end def host=(*args, &block); end def in_parallel(manager = nil); end def in_parallel?; end def initialize(url = nil, options = nil); end def initialize_proxy(url, options); end def options(*args); end def parallel_manager; end def params; end def params=(hash); end def patch(url = nil, body = nil, headers = nil, &block); end def path_prefix(*args, &block); end def path_prefix=(value); end def port(*args, &block); end def port=(*args, &block); end def post(url = nil, body = nil, headers = nil, &block); end def proxy; end def proxy=(new_value); end def proxy_for_request(url); end def proxy_from_env(url); end def put(url = nil, body = nil, headers = nil, &block); end def request(*args, &block); end def response(*args, &block); end def run_request(method, url, body, headers); end def scheme(*args, &block); end def scheme=(*args, &block); end def set_authorization_header(header_type, *args); end def ssl; end def support_parallel?(adapter); end def token_auth(token, options = nil); end def trace(url = nil, params = nil, headers = nil); end def url_prefix; end def url_prefix=(url, encoder = nil); end def use(*args, &block); end def with_uri_credentials(uri); end extend Forwardable end class Faraday::AdapterRegistry def get(name); end def initialize; end def set(klass, name = nil); end end class Faraday::RackBuilder def ==(other); end def [](idx); end def adapter(klass = nil, *args, &block); end def adapter_set?; end def app; end def assert_index(index); end def build(options = nil); end def build_env(connection, request); end def build_response(connection, request); end def delete(handler); end def dup; end def handlers; end def handlers=(arg0); end def initialize(handlers = nil, adapter = nil, &block); end def insert(index, *args, &block); end def insert_after(index, *args, &block); end def insert_before(index, *args, &block); end def is_adapter?(klass); end def lock!; end def locked?; end def raise_if_adapter(klass); end def raise_if_locked; end def request(key, *args, &block); end def response(key, *args, &block); end def swap(index, *args, &block); end def to_app; end def use(klass, *args, &block); end def use_symbol(mod, key, *args, &block); end end class Faraday::RackBuilder::StackLocked < RuntimeError end class Faraday::RackBuilder::Handler def ==(other); end def build(app = nil); end def initialize(klass, *args, &block); end def inspect; end def klass; end def name; end end module Faraday::EncodeMethods def encode(params); end def encode_array(parent, value); end def encode_hash(parent, value); end def encode_pair(parent, value); end end module Faraday::DecodeMethods def add_to_context(is_array, context, value, subkey); end def decode(query); end def decode_pair(key, value, context); end def dehash(hash, depth); end def match_context(context, subkey); end def new_context(subkey, is_array, context); end def prepare_context(context, subkey, is_array, last_subkey); end end module Faraday::NestedParamsEncoder def self.escape(*args, &block); end def self.unescape(*args, &block); end extend Faraday::DecodeMethods extend Faraday::EncodeMethods end module Faraday::FlatParamsEncoder def self.decode(query); end def self.encode(params); end def self.escape(*args, &block); end def self.unescape(*args, &block); end end class Faraday::Middleware def close; end def initialize(app = nil); end extend Faraday::DependencyLoader extend Faraday::MiddlewareRegistry end class Faraday::Adapter def call(env); end def close; end def connection(env); end def initialize(_app = nil, opts = nil, &block); end def request_timeout(type, options); end def save_response(env, status, body, headers = nil, reason_phrase = nil); end extend Faraday::Adapter::Parallelism extend Faraday::AutoloadHelper extend Faraday::DependencyLoader extend Faraday::MiddlewareRegistry end module Faraday::Adapter::Parallelism def inherited(subclass); end def supports_parallel=(arg0); end def supports_parallel?; end end class Anonymous_Struct_57 < Struct def body; end def body=(_); end def headers; end def headers=(_); end def method; end def method=(_); end def options; end def options=(_); end def params; end def params=(_); end def path; end def path=(_); end def self.[](*arg0); end def self.inspect; end def self.members; end def self.new(*arg0); end end class Faraday::Request < Anonymous_Struct_57 def [](key); end def []=(key, value); end def headers=(hash); end def marshal_dump; end def marshal_load(serialised); end def params=(hash); end def self.create(request_method); end def to_env(connection); end def url(path, params = nil); end extend Faraday::AutoloadHelper extend Faraday::MiddlewareRegistry end class Faraday::Response def [](*args, &block); end def apply_request(request_env); end def body; end def env; end def finish(env); end def finished?; end def headers; end def initialize(env = nil); end def marshal_dump; end def marshal_load(env); end def on_complete(&block); end def reason_phrase; end def status; end def success?; end def to_hash; end extend Faraday::AutoloadHelper extend Faraday::MiddlewareRegistry extend Forwardable end class Faraday::Response::Middleware < Faraday::Middleware def call(env); end def on_complete(env); end end class Faraday::Error < StandardError def backtrace; end def exc_msg_and_response!(exc, response = nil); end def exc_msg_and_response(exc, response = nil); end def initialize(exc, response = nil); end def inspect; end def response; end def wrapped_exception; end end class Faraday::ClientError < Faraday::Error end class Faraday::BadRequestError < Faraday::ClientError end class Faraday::UnauthorizedError < Faraday::ClientError end class Faraday::ForbiddenError < Faraday::ClientError end class Faraday::ResourceNotFound < Faraday::ClientError end class Faraday::ProxyAuthError < Faraday::ClientError end class Faraday::ConflictError < Faraday::ClientError end class Faraday::UnprocessableEntityError < Faraday::ClientError end class Faraday::ServerError < Faraday::Error end class Faraday::TimeoutError < Faraday::ServerError def initialize(exc = nil, response = nil); end end class Faraday::NilStatusError < Faraday::ServerError def initialize(exc, response = nil); end end class Faraday::ConnectionFailed < Faraday::Error end class Faraday::SSLError < Faraday::Error end class Faraday::ParsingError < Faraday::Error end class Faraday::RetriableResponse < Faraday::Error end class Faraday::CompositeReadIO def advance_io; end def close; end def current_io; end def ensure_open_and_readable; end def initialize(*parts); end def length; end def read(length = nil, outbuf = nil); end def rewind; end end class Faraday::ParamPart def content_id; end def content_type; end def headers; end def initialize(value, content_type, content_id = nil); end def to_part(boundary, key); end def value; end end module Faraday::AutoloadHelper def all_loaded_constants; end def autoload_all(prefix, options); end def load_autoloaded_constants; end end class Faraday::Request::UrlEncoded < Faraday::Middleware def call(env); end def match_content_type(env); end def process_request?(env); end def request_type(env); end def self.mime_type; end def self.mime_type=(arg0); end end class Faraday::Request::Multipart < Faraday::Request::UrlEncoded def call(env); end def create_multipart(env, params); end def has_multipart?(obj); end def part(boundary, key, value); end def process_params(params, prefix = nil, pieces = nil, &block); end def process_request?(env); end def unique_boundary; end end class Faraday::Response::RaiseError < Faraday::Response::Middleware def on_complete(env); end def response_values(env); end end