Sha256: 33a464d7824df0ae0c695d50c15617ea4d31b6c86e855de76af4158b7eab3d5f

Contents?: true

Size: 557 Bytes

Versions: 30

Compression:

Stored size: 557 Bytes

Contents

# frozen_string_literal: true

require "socket"
require "httpx/io/tcp"
require "httpx/io/unix"
require "httpx/io/udp"

module HTTPX
  module IO
    extend Registry
    register "udp", UDP
    register "unix", HTTPX::UNIX
    register "tcp", TCP

    if RUBY_ENGINE == "jruby"
      begin
        require "httpx/io/tls"
        register "ssl", TLS
      rescue LoadError
        # :nocov:
        require "httpx/io/ssl"
        register "ssl", SSL
        # :nocov:
      end
    else
      require "httpx/io/ssl"
      register "ssl", SSL
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
httpx-0.14.5 lib/httpx/io.rb
httpx-0.14.4 lib/httpx/io.rb
httpx-0.14.3 lib/httpx/io.rb
httpx-0.14.2 lib/httpx/io.rb
httpx-0.14.1 lib/httpx/io.rb
httpx-0.14.0 lib/httpx/io.rb
httpx-0.13.2 lib/httpx/io.rb
httpx-0.13.1 lib/httpx/io.rb
httpx-0.13.0 lib/httpx/io.rb
httpx-0.12.0 lib/httpx/io.rb