Sha256: fad80a17d3fee04560fe262c15d1296d732962556237d7b4fc6f98cee365d4ec

Contents?: true

Size: 612 Bytes

Versions: 17

Compression:

Stored size: 612 Bytes

Contents

module HTTPX

  class TLSError < OpenSSL::SSL::SSLError
  end

  class SSL < TCP
    TLS_OPTIONS: Hash[Symbol, untyped]

    @ctx: OpenSSL::SSL::SSLContext
    @verify_hostname: bool

    attr_writer ssl_session: OpenSSL::SSL::Session?

    # TODO: lift when https://github.com/ruby/rbs/issues/1497 fixed
    # def initialize: (URI::Generic origin, Array[ipaddr]? addresses, options options) ?{ (self) -> void } -> void

    def can_verify_peer?: () -> bool

    def verify_hostname: (String host) -> bool

    def ssl_session_expired?: () -> boolish

    # :nocov:
    def try_ssl_connect: () -> void
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
httpx-1.2.4 sig/io/ssl.rbs
httpx-1.2.3 sig/io/ssl.rbs
httpx-1.2.2 sig/io/ssl.rbs
httpx-1.2.1 sig/io/ssl.rbs
httpx-1.2.0 sig/io/ssl.rbs
httpx-1.1.5 sig/io/ssl.rbs
httpx-1.1.4 sig/io/ssl.rbs
httpx-1.1.3 sig/io/ssl.rbs
httpx-1.1.2 sig/io/ssl.rbs
httpx-1.1.1 sig/io/ssl.rbs
httpx-1.1.0 sig/io/ssl.rbs
httpx-1.0.2 sig/io/ssl.rbs
httpx-0.24.7 sig/io/ssl.rbs
httpx-1.0.1 sig/io/ssl.rbs
httpx-1.0.0 sig/io/ssl.rbs
httpx-0.24.6 sig/io/ssl.rbs
httpx-0.24.5 sig/io/ssl.rbs