documint.web

Documint web service.

content-getter

(content-getter near? fetch-near fetch-far)
Create a function to retrieve session content.

Accepts single or multiple URIs to fetch, `fetch-near` is tried when `near?`
indicates a URI is near to this instance, falling back to `fetch-far`.

content-index

(content-index session-factory)

content-resource

(content-resource session-factory)

content?

(content? ctx)
Look up the content for a session in the request.

If found, the content is associated with the `:documint.web/content` key.

jetty-options

(jetty-options keystore truststore {{:keys [port tls-port tls-cert]} :web-server, {key-password :password} :keystore, {trust-password :password} :truststore})
ring-jetty-adapter options.

local-fetcher

(local-fetcher session-factory)
Create a function to retrieve local content that does not use HTTP.

local-uri?

(local-uri? {req :request})
Return the URI path if the URI is local to this instance.

near-location

(near-location path)
Find the coordinates for the near location, in the form of
`[session-id content-id]`, if possible.

new-app

(new-app)

parse-json

(parse-json key ctx)
Parse a Liberator request's body as JSON.

route-handlers

(route-handlers session-factory)

routes

API routes definition.

session-index

(session-index session-factory)

session-perform

(session-perform session-factory)

session-resource

(session-resource session-factory)

session?

(session? session-factory)
Look up the session in a request.

If found, the session is associated with the `:documint.web/session` key.