Liking cljdoc? Tell your friends :D

clj-activitypub.net


actor-type?clj


any-collection-type?clj


auth-headersclj

(auth-headers config {:keys [body headers] :or {headers {}}})

Given a config and request map of {:body ... :headers ...}, returns the original set of headers with Signature and Digest attributes appended. If Date is not in the original header set, it will also be appended.

Given a config and request map of {:body ... :headers ...}, returns the
original set of headers with Signature and Digest attributes appended. If
Date is not in the original header set, it will also be appended.
raw docstring

collection-page-type?clj


collection-type?clj


delivery-targets!clj

(delivery-targets! activity)

Returns the distinct inbox locations for the audience of the activity. This includes the :to, :cc, :audience, :target, :inReplyTo, :object, and :tag fields while also removing the author's own address. If the user's server supports a sharedInbox, that location is returned instead.

Returns the distinct inbox locations for the audience of the activity. This
includes the :to, :cc, :audience, :target, :inReplyTo, :object, and :tag
fields while also removing the author's own address. If the user's server
supports a sharedInbox, that location is returned instead.
raw docstring

fetch-actor!clj

(fetch-actor! user-id)

Fetches the actor located at user-id from a remote server. If you wish to retrieve a list of objects, see [[fetch-objects!]]. Will return a cached result if it exists in memory.

Fetches the actor located at user-id from a remote server. If you wish to
retrieve a list of objects, see [[fetch-objects!]]. Will return a cached
result if it exists in memory.
raw docstring

gen-signature-headerclj

(gen-signature-header config headers)

Generates a HTTP Signature string based on the provided map of headers.

Generates a HTTP Signature string based on the provided map of headers.
raw docstring

lazy-resolve!clj

(lazy-resolve! str-or-obj)

reset-object-cache!clj

(reset-object-cache!)

Removes all entries from the object cache, which is populated with results from [[fetch-objects!]] or [[fetch-user!]].

Removes all entries from the object cache, which is populated with results
from [[fetch-objects!]] or [[fetch-user!]].
raw docstring

resolve!clj

(resolve! str-or-obj)

Fetches the resource(s) located at remote-id from a remote server. Results are returned as a collection. If URL points to an ActivityPub Collection, the links will be followed until a resolved object is found. Will return cached results if they exist in memory.

Fetches the resource(s) located at remote-id from a remote server. Results
are returned as a collection. If URL points to an ActivityPub Collection,
the links will be followed until a resolved object is found. Will return
cached results if they exist in memory.
raw docstring

signature-headersclj


terminal-object-type?clj

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

× close