Sha256: 41da03dc3f7789efe88ed78bdd7886fe5e0c66f9b13885e0566d83ca8681b2b8

Contents?: true

Size: 261 Bytes

Versions: 2

Compression:

Stored size: 261 Bytes

Contents

module HTTPX
  module IDNA
    module_function

    begin
      require "idn"

      def convert(non_ascii_hostname); end
    rescue LoadError
      def convert(non_ascii_hostname)
        DomainName.new(non_ascii_hostname).hostname
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
httpx-0.14.5 lib/httpx/idna.rb
httpx-0.14.4 lib/httpx/idna.rb