(basepath {:keys [scheme server-name server-port headers] :as request})
extract a base-path from ring request. Doesn't return default ports and reads the header "x-forwarded-proto" only if it's set to value "https". (e.g. your ring-app is behind a nginx reverse https-proxy). Adds possible servlet-context when running in legacy app-server.
extract a base-path from ring request. Doesn't return default ports and reads the header "x-forwarded-proto" only if it's set to value "https". (e.g. your ring-app is behind a nginx reverse https-proxy). Adds possible servlet-context when running in legacy app-server.
(collect-models x)
Walks through the data structure and collects all Schemas into a map schema-name->#{values}. Note: schame-name can link to sevetal implementations.
Walks through the data structure and collects all Schemas into a map schema-name->#{values}. Note: schame-name can link to sevetal implementations.
(context {:keys [servlet-context]})
Context of a request. Defaults to "", but has the servlet-context in the legacy app-server environments.
Context of a request. Defaults to "", but has the servlet-context in the legacy app-server environments.
(join-paths & paths)
Join several paths together with "/". If path ends with a slash, another slash is not added.
Join several paths together with "/". If path ends with a slash, another slash is not added.
(peek-schema schema)
Recurisively seeks the first form with schema-name. Walks over sets, vectors and Schema predicates.
Recurisively seeks the first form with schema-name. Walks over sets, vectors and Schema predicates.
(strict-schema schema)
removes open keys from schema
removes open keys from schema
(with-named-sub-schemas schema)
(with-named-sub-schemas schema prefix)
Traverses a schema tree of Maps, Sets and Sequences and add Schema-name to all anonymous maps between the root and any named schemas in thre tree. Names of the schemas are generated by the following: Root schema name (or a generated name) + all keys in the path CamelCased
Traverses a schema tree of Maps, Sets and Sequences and add Schema-name to all anonymous maps between the root and any named schemas in thre tree. Names of the schemas are generated by the following: Root schema name (or a generated name) + all keys in the path CamelCased
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close