Liking cljdoc? Tell your friends :D

clj-activitypub.net


actor-type?clj

source

any-collection-type?clj

source

auth-headersclj

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

Given a config and request map of {:body ... :headers ... :request-target ...}, 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 ... :request-target ...},
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.
sourceraw docstring

authorized-fetch-actor!clj

(authorized-fetch-actor! user-id config)

Same as fetch-actor! but with a signature header added to the request. You should expect the remote server to make a call to the actor identified in config to verify the signing key.

Same as [[fetch-actor!]] but with a signature header added to the request.
You should expect the remote server to make a call to the actor identified
in `config` to verify the signing key.
sourceraw docstring

authorized-resolve!clj

(authorized-resolve! str-or-obj config)

Same as resolve! but with a signature header added to the request. You should expect the remote server to make a call to the actor identified in config to verify the signing key.

Same as [[resolve!]] but with a signature header added to the request.
You should expect the remote server to make a call to the actor identified
in `config` to verify the signing key.
sourceraw docstring

collection-page-type?clj

source

collection-type?clj

source

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.
sourceraw 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 resolve!. 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 [[resolve!]]. Will return a cached
result if it exists in memory.
sourceraw 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.
sourceraw docstring

reset-cache!clj

(reset-cache!)

Removes all entries from the object cache.

Removes all entries from the object cache.
sourceraw 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.
sourceraw docstring

signature-headersclj

source

terminal-object-type?clj

source

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

× close