Liking cljdoc? Tell your friends :D

calfpath.internal


as-uri-templateclj/s

(as-uri-template uri-pattern-or-template)
source

assoc-uri-match-end-indexclj/smacro

(assoc-uri-match-end-index request end-index)
source (clj)source (cljs)

build-routes-indexclj/s

(build-routes-index context
                    routes
                    {:keys [index-key uri-key method-key]
                     :or {index-key :id uri-key :uri method-key :method}
                     :as options})

Given a collection of routes, index them returning a map {:id the-route}.

Given a collection of routes, index them returning a map {:id the-route}.
sourceraw docstring

conj-mapsclj/s

(conj-maps old-map new-map)

Merge two maps efficiently using conj.

Merge two maps efficiently using conj.
sourceraw docstring

default-separatorclj/s

source

dropperclj/s

(dropper n)
source

expectedclj/s

(expected expectation found)
(expected pred expectation found)
source

find-discriminator-tokensclj/s

(find-discriminator-tokens routes-uri-tokens)
source

find-prefix-tokensclj/s

(find-prefix-tokens routes-uri-tokens)

Given routes with URI-patterns, find the common (non empty) prefix URI pattern tokens.

Given routes with URI-patterns, find the common (non empty) prefix URI pattern tokens.
sourceraw docstring

find-prefix-tokens-pairclj/s

(find-prefix-tokens-pair routes-uri-tokens)

Given routes with URI-patterns, find the common (non empty) prefix URI pattern tokens and balance tokens.

Given routes with URI-patterns, find the common (non empty) prefix URI pattern tokens and balance tokens.
sourceraw docstring

full-matchclj/s

(full-match params)
source

FULL-MATCH-INDEXclj/s

source

FULL-MATCH-INDEX-OBJECTclj/s

source

FULL-MATCH-NO-PARAMSclj/s

source

get-uri-match-end-indexclj/smacro

(get-uri-match-end-index request)
source (clj)source (cljs)

invokeclj/s

(invoke f)
(invoke f x)
(invoke f x y)
(invoke f x y & args)

Invoke first arg as a function on remaing args.

Invoke first arg as a function on remaing args.
sourceraw docstring

match-uriclj/s

(match-uri uri begin-index pattern-tokens attempt-partial-match?)

Match given URI string against URI pattern, returning a vector [params-map ^int end-index] on success, and nil on no match.

ArgumentDescription
urithe URI string to match
begin-indexindex in the URI string to start matching at
pattern-tokensURI pattern tokens to match against
attempt-partial-match?flag to indicate whether to attempt partial-match
Match given URI string against URI pattern, returning a vector `[params-map ^int end-index]` on success,
and `nil` on no match.

| Argument               | Description                                       |
|------------------------|---------------------------------------------------|
| uri                    | the URI string to match                           |
| begin-index            | index in the URI string to start matching at      |
| pattern-tokens         | URI pattern tokens to match against               |
| attempt-partial-match? | flag to indicate whether to attempt partial-match |
sourceraw docstring

match-uri*clj/s

(match-uri* uri begin-index pattern-tokens attempt-partial-match?)
source

method-dispatchclj/s≠macro

clj
(method-dispatch method-keyword request expr)
(method-dispatch method-keyword request expr default-expr)
cljs
(method-dispatch &form &env method-keyword request expr)
(method-dispatch &form &env method-keyword request expr default-expr)
source (clj)source (cljs)

NO-PARAMSclj/s

source

parse-uri-templateclj/s

(parse-uri-template marker-char pattern)

Given a URI pattern string, e.g. '/user/:id/profile/:descriptor/' parse it and return a vector of alternating string and keyword tokens, e.g. ['/user/' :id '/profile/' :descriptor '/']. The marker char is typically ':'.

Given a URI pattern string, e.g. '/user/:id/profile/:descriptor/' parse it and return a vector of alternating string
and keyword tokens, e.g. ['/user/' :id '/profile/' :descriptor '/']. The marker char is typically ':'.
sourceraw docstring

partial-matchclj/s

(partial-match end-index)
(partial-match params end-index)
source

path-paramsclj/s

source

reduce-mkvclj/s≠

clj
(reduce-mkv f init m)

Same as clojure.core/reduce-kv for java.util.Map instances.

Same as clojure.core/reduce-kv for java.util.Map instances.
cljs
source (clj)source (cljs)raw docstring

split-routes-having-uriclj/s

(split-routes-having-uri routes uri-key)

Given mixed routes (vector), split into those having distinct routes and those that don't.

Given mixed routes (vector), split into those having distinct routes and those that don't.
sourceraw docstring

strip-partial-markerclj/s

(strip-partial-marker x)
source

tokenize-routes-urisclj/s

(tokenize-routes-uris routes-with-uri uri-key)

Given routes with URI patterns, tokenize them as vectors.

Given routes with URI patterns, tokenize them as vectors.
sourceraw docstring

triefyclj/s

(triefy routes-with-uri trie-threshold uri-key)
source

triefy-allclj/s

(triefy-all routes trie-threshold uri-key)
source

uri-match-end-indexclj/s

source

valid-method-keysclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close