HTTP helper functionality. Note: this namespace is not part of the public API of lice-comb and may change without notice.
HTTP helper functionality. Note: this namespace is not part of the public API of lice-comb and may change without notice.
(gav->pom-uri {:keys [group-id artifact-id version]})
(gav->pom-uri group-id artifact-id version)
Returns a java.net.URI pointing to the POM for the given GAV (a map), or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP- accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
Returns a java.net.URI pointing to the POM for the given GAV (a map), or nil if one cannot be found. The returned URI is guaranteed to be resolvable - either to a file that exists in the local Maven cache, or to an HTTP- accessible resource on a remote Maven repository (i.e. Maven Central or Clojars) that resolves.
(get-text uri)
Attempts to get plain text as a String from the given URI, returning nil if unable to do so (including for error conditions - there is no way to disambiguate errors from non-text content, for example).
Attempts to get plain text as a String from the given URI, returning nil if unable to do so (including for error conditions - there is no way to disambiguate errors from non-text content, for example).
(init!)
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
Initialises this namespace upon first call (and does nothing on subsequent calls), returning nil. Consumers of this namespace are not required to call this fn, as initialisation will occur implicitly anyway; it is provided to allow explicit control of the cost of initialisation to callers who need it.
(uri-resolves? uri)
Does the given URI resolve (i.e. does the resource it points to exist)?
Note: does not throw - returns false on errors.
Does the given URI resolve (i.e. does the resource it points to exist)? Note: does not throw - returns false on errors.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close