This commit is contained in:
Felix Ableitner 2025-07-10 09:39:34 +02:00
parent 056aee6d2f
commit 8217b03c69

View file

@ -12,6 +12,9 @@ use url::Url;
/// Generates HTTP response to serve the object for fetching from other instances. /// Generates HTTP response to serve the object for fetching from other instances.
/// ///
/// If possible use [Object.http_response]
/// which also handles redirects for remote objects and deletions.
///
/// `federation_context` is the value of `@context`. /// `federation_context` is the value of `@context`.
pub fn create_http_response<T: Serialize>( pub fn create_http_response<T: Serialize>(
data: T, data: T,