You're viewing version 1.2.0 of as-url. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (as-url x)
Coerce argument to a URL.

1 Example top

  • (use '[ :only (as-url)])
    (import '
    user=> (as-url nil)
    user=> (as-url (File. "/tmp"))
    #<URL file:/tmp/>
    user=> (as-url "")
    user=> (as-url "")
    user=> (as-url "")
    #<CompilerException no protocol:>
Log in to add / edit an example.

See Also top

Log in to add a see also.

Comments top

No comments for as-url. Log in to add a comment.