class URI

Overview

Punycode provides an interface for IDNA encoding (RFC 5980), which is defined in RFC 3493

Implementation based on Mathias Bynens punnycode.js project https://github.com/bestiejs/punycode.js/

RFC 3492: Method to use non-ascii characters as host name of URI https://www.ietf.org/rfc/rfc3492.txt

RFC 5980: Internationalized Domain Names in Application https://www.ietf.org/rfc/rfc5980.txt

Defined in:

arachnid/extensions/uri.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.expand_path(path) #

Expands a URI decoded path, into a proper absolute path.

@param [String] path The path from a URI.

@return [String] The expanded path.

@example URI.expand_path("./path") # => "path"

@example URI.expand_path("test/../path") # => "path"

@example URI.expand_path("/test/path/") # => "/test/path/"

@example URI.expand_path("/test/../path") # => "/path"


[View source]

Instance Method Detail

def merge(oth) #

[View source]
def merge_path(base, rel) #

[View source]
def split_path(path) #

[View source]