(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.
(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.
(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.
(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.
(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!]].
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close