Sha256: 8fdbbbfaef776757acaad9bc83da42562dc02aa4ebe98620f8ce9aaaa7d1959f

Contents?: true

Size: 1.21 KB

Versions: 20

Compression:

Stored size: 1.21 KB

Contents

module HTTPX
  class Error < StandardError
  end

  class UnsupportedSchemeError < Error
  end

  class ConnectionError < Error
  end

  class TimeoutError < Error
    attr_reader timeout: Numeric

    def to_connection_error: () -> ConnectTimeoutError
    private

    def initialize: (Numeric timeout, String message) -> untyped
  end

  class ConnectTimeoutError < TimeoutError
  end

  class SettingsTimeoutError < TimeoutError
  end

  class ResolveTimeoutError < TimeoutError
  end

  class RequestTimeoutError < TimeoutError
    attr_reader request: Request
    attr_reader response: response?

    def initialize: (Request request, response? response, Numeric timeout) -> void
  end

  class ReadTimeoutError < RequestTimeoutError
  end

  class WriteTimeoutError < RequestTimeoutError
  end

  class ResolveError < Error
  end

  class HTTPError < Error
    attr_reader response: Response

    private

    def initialize: (Response response) -> void
  end

  class NativeResolveError < ResolveError
    attr_reader connection: Connection
    attr_reader host: String

    private

    def initialize: (Connection connection, String hostname, ?String message) -> untyped
  end

  class MisdirectedRequestError < HTTPError
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/errors.rbs
httpx-1.3.3 sig/errors.rbs
httpx-1.3.2 sig/errors.rbs
httpx-1.3.1 sig/errors.rbs
httpx-1.3.0 sig/errors.rbs
httpx-1.2.6 sig/errors.rbs
httpx-1.2.4 sig/errors.rbs
httpx-1.2.3 sig/errors.rbs
httpx-1.2.2 sig/errors.rbs
httpx-1.2.1 sig/errors.rbs
httpx-1.2.0 sig/errors.rbs
httpx-1.1.5 sig/errors.rbs
httpx-1.1.4 sig/errors.rbs
httpx-1.1.3 sig/errors.rbs
httpx-1.1.2 sig/errors.rbs
httpx-1.1.1 sig/errors.rbs
httpx-1.1.0 sig/errors.rbs
httpx-1.0.2 sig/errors.rbs
httpx-1.0.1 sig/errors.rbs
httpx-1.0.0 sig/errors.rbs