Sha256: 09f7c6fae8e58feb9d0b2077679e4aac2573a7dc09be2d185fa46383e626306e

Contents?: true

Size: 840 Bytes

Versions: 15

Compression:

Stored size: 840 Bytes

Contents

module HTTPX
  class Error < StandardError
  end

  class TimeoutError < Error
    attr_reader timeout: Numeric

    def to_connection_error: () -> ConnectTimeoutError
    private

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

  class TotalTimeoutError < TimeoutError
  end

  class ConnectTimeoutError < TimeoutError
  end

  class SettingsTimeoutError < TimeoutError
  end

  class ResolveTimeoutError < TimeoutError
  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
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
httpx-0.20.5 sig/errors.rbs
httpx-0.20.4 sig/errors.rbs
httpx-0.20.3 sig/errors.rbs
httpx-0.20.2 sig/errors.rbs
httpx-0.20.1 sig/errors.rbs
httpx-0.20.0 sig/errors.rbs
httpx-0.19.8 sig/errors.rbs
httpx-0.19.7 sig/errors.rbs
httpx-0.19.6 sig/errors.rbs
httpx-0.19.5 sig/errors.rbs
httpx-0.19.4 sig/errors.rbs
httpx-0.19.3 sig/errors.rbs
httpx-0.19.2 sig/errors.rbs
httpx-0.19.1 sig/errors.rbs
httpx-0.19.0 sig/errors.rbs