Skip to main content
This release is 4 versions behind 0.12.0 — the latest version of @fedify/fedify. Jump to latest

@fedify/fedify@0.11.0-dev.223+fd936aeb
Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
a month ago (0.11.0-dev.223+fd936aeb)
method Federation.prototype.fetch
Federation.prototype.fetch(
request: Request,
options: FederationFetchOptions<TContextData>,
): Promise<Response>

Handles a request related to federation. If a request is not related to federation, the onNotFound or onNotAcceptable callback is called.

Usually, this method is called from a server's request handler or a web framework's middleware.

Parameters

request: Request

The request object.

options: FederationFetchOptions<TContextData>

Return Type

The response to the request.

Add Package

deno add @fedify/fedify

Import symbol

import { Federation } from "@fedify/fedify/federation";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { Federation } from "@fedify/fedify/federation";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { Federation } from "@fedify/fedify/federation";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { Federation } from "@fedify/fedify/federation";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { Federation } from "@fedify/fedify/federation";