# typed: true # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `sorbet-http` gem. # Please instead update this file by running `bin/tapioca gem sorbet-http`. # source://sorbet-http//lib/sorbet-http.rb#10 module Typed; end # source://sorbet-http//lib/typed/http/method.rb#5 module Typed::HTTP; end # Enumerates all valid request header methods. # # source://sorbet-http//lib/typed/http/method.rb#7 class Typed::HTTP::Method < ::T::Enum enums do Connect = new Delete = new Get = new Head = new Options = new Patch = new Post = new Put = new Trace = new end end # Enumerates all valid HTTP response status codes and # provides conversion and convenience methods. # # source://sorbet-http//lib/typed/http/status_code.rb#8 class Typed::HTTP::StatusCode < ::T::Enum enums do Continue = new SwitchingProtocols = new Processing = new EarlyHints = new OK = new Created = new Accepted = new NonAuthoritativeInformation = new NoContent = new ResetContent = new PartialContent = new MultipleChoices = new MovedPermanently = new Found = new SeeOther = new NotModified = new TemporaryRedirect = new PermanentRedirect = new BadRequest = new Unauthorized = new PaymentRequired = new Forbidden = new NotFound = new MethodNotAllowed = new NotAcceptable = new ProxyAuthenticationRequired = new RequestTimeout = new Conflict = new Gone = new LengthRequired = new PreconditionFailed = new ContentTooLarge = new URITooLong = new UnsupportedMediaType = new RangeNotSatisfied = new ExpectationFailed = new ImATeapot = new MisdirectedRequest = new UnprocessableContent = new Locked = new FailedDependency = new TooEarly = new UpgradeRequired = new PreconditionRequired = new TooManyRequests = new RequestHeaderFieldsTooLarge = new UnavailableForLegalReasons = new InternalServerError = new NotImplemented = new BadGateway = new ServiceUnavailable = new GatewayTimeout = new HTTPVersionNotSupported = new VariantAlsoNegotiates = new InsufficientStorage = new LoopDetected = new NotExtended = new NetworkAuthenticationRequired = new end # source://sorbet-http//lib/typed/http/status_code.rb#349 sig { returns(T::Boolean) } def client_error?; end # source://sorbet-http//lib/typed/http/status_code.rb#334 sig { returns(T::Boolean) } def informational?; end # source://sorbet-http//lib/typed/http/status_code.rb#344 sig { returns(T::Boolean) } def redirection?; end # source://sorbet-http//lib/typed/http/status_code.rb#354 sig { returns(T::Boolean) } def server_error?; end # source://sorbet-http//lib/typed/http/status_code.rb#339 sig { returns(T::Boolean) } def successful?; end # @return [Integer] # # source://sorbet-runtime/0.5.11471/lib/types/private/methods/_methods.rb#257 def to_code(*args, **_arg1, &blk); end # source://sorbet-http//lib/typed/http/status_code.rb#208 sig { returns(::Integer) } def to_i; end private # source://sorbet-http//lib/typed/http/status_code.rb#361 sig { returns(::Integer) } def first_digit; end class << self # @param int [Integer] # @return [StatusCode] # # source://sorbet-runtime/0.5.11471/lib/types/private/methods/_methods.rb#257 def from_code(*args, **_arg1, &blk); end # source://sorbet-http//lib/typed/http/status_code.rb#81 sig { params(int: ::Integer).returns(::Typed::HTTP::StatusCode) } def from_i(int); end end end