(gets key & maps)
Returns the first value mapped to key found in the provided maps.
Returns the first value mapped to key found in the provided maps.
(relative-url request)
Similar to util/original-url
(and thus ring.util.request/request-url
)
except that it only uses :uri
and :query-string
parts of the request
to build the URL and ignores :scheme
and the 'host' header.
This is to avoid issues with redirects using absolute URLs when the app is running behind an SSL proxy.
Similar to `util/original-url` (and thus `ring.util.request/request-url`) except that it only uses `:uri` and `:query-string` parts of the request to build the URL and ignores `:scheme` and the 'host' header. This is to avoid issues with redirects using absolute URLs when the app is running behind an SSL proxy.
(resolve-absolute-uri uri request)
DEPRECATED. Use relative-url
.
This function is only kept for backward compatibility. It was meant to conform to an old HTTP spec that required absolute URLs for redirects but that's no longer needed.
DEPRECATED. Use `relative-url`. This function is only kept for backward compatibility. It was meant to conform to an old HTTP spec that required absolute URLs for redirects but that's no longer needed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close