Method: Auth0::Mixins::HTTPProxy#encode_uri

Defined in:
lib/auth0/mixins/httpproxy.rb

#encode_uri(uri) ⇒ Object

[View source]

46
47
48
49
50
# File 'lib/auth0/mixins/httpproxy.rb', line 46

def encode_uri(uri)
  # if a base_uri is set then the uri can be encoded as a path
  path = base_uri ? Addressable::URI.new(path: uri).normalized_path : Addressable::URI.escape(uri)
  url(path)
end