class DartURI

Defined in:

extern/dart_uri.cr

Class Method Summary

Class Method Detail

def self.encode_full(uri : String) : String #

Encodes the string uri using percent-encoding to make it safe for literal use as a full URI.

All characters except uppercase and lowercase letters, digits, and the characters !#$&'()*+,-./:;=?@_~ are percent-encoded. This is the set of characters specified in ECMA-262 version 5.1 for the encodeURI function.

NOTE This is a Crystal port of the Dart Uri.encodeFull method (src).